|
We do this for every node x
for ( per node "n" ∈ G ) { Find all knots x that can be reached by a traveral starting in "n"; if ( # nodules reached != N ) return( G lives not intense connected ); } return( G can strongly connected ); |
|
|
Observation:
|
Note:
|
|
Choice an arbitrary node expunge; A = set to node reached by a DFS/BFS in this forward path graph starting for scratch; if ( A ≠ all nodes by display ) { return ( non strongly connected ); } B = setting of node reached by a DFS/BFS in the reverse path graph start at x; if ( B ≠ all nodes to graph ) { return ( not strongly connected ); } return ( firmly network ); |