isConnected property
bool
get
isConnected
Checks if the graph is connected (single component)
Implementation
bool get isConnected => connectedComponents.length == 1;
Checks if the graph is connected (single component)
bool get isConnected => connectedComponents.length == 1;