isConnected property

bool get isConnected

Checks if the graph is connected (single component)

Implementation

bool get isConnected => connectedComponents.length == 1;