Skip to content

Instantly share code, notes, and snippets.

@dd1994
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dd1994/b648622389041d1ab5af to your computer and use it in GitHub Desktop.
Save dd1994/b648622389041d1ab5af to your computer and use it in GitHub Desktop.
#define MaxVertices 100
typedef struct{
int vertices[MaxVertices];
int edge[Maxvertices];
int numV;
int numE;
}adjMatrix;
void createGraph(adjMatrix &G, int n, int E)
{
//建立图的邻接矩阵
}
void dispGraph(adjMatrix G)
{
//输出图的邻接矩阵
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment