Skip to content

@graphty/algorithms / index / isWeaklyConnected

Function: isWeaklyConnected() ​

isWeaklyConnected(graph): boolean

Defined in: algorithms/components/connected.ts:261

Check if a directed graph is weakly connected

Parameters ​

graph ​

Graph

The input graph (must be directed)

Returns ​

boolean

True if the graph is weakly connected, false otherwise