From fcb7c1e65afca2ba7cf01392e85a6f800767b82b Mon Sep 17 00:00:00 2001 From: tiny656 Date: Wed, 10 Jan 2024 21:30:04 +0800 Subject: [PATCH] update --- .../6-14_Count Connected Components (20).c | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/Data Structures and Algorithms (English)/6-14_Count Connected Components (20).c b/Data Structures and Algorithms (English)/6-14_Count Connected Components (20).c index e859b0c..3eaee34 100644 --- a/Data Structures and Algorithms (English)/6-14_Count Connected Components (20).c +++ b/Data Structures and Algorithms (English)/6-14_Count Connected Components (20).c @@ -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];