Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny656 committed Jan 10, 2024
1 parent e8b18e9 commit fcb7c1e
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
typedef enum {false, true} bool;
#define MaxVertexNum 10 /* maximum number of vertices */
typedef int Vertex; /* vertices are numbered from 0 to MaxVertexNum-1 */

typedef struct AdjVNode *PtrToAdjVNode;
struct AdjVNode{
Vertex AdjV;
PtrToAdjVNode Next;
};

typedef struct Vnode{
PtrToAdjVNode FirstEdge;
} AdjList[MaxVertexNum];

typedef struct GNode *PtrToGNode;
struct GNode{
int Nv;
int Ne;
AdjList G;
};
typedef PtrToGNode LGraph;

int CountConnectedComponents( LGraph Graph ) {
int count = 0;
bool visited[MaxVertexNum];
Expand Down

0 comments on commit fcb7c1e

Please sign in to comment.