ConnectedComponents
com.phasmidsoftware.gryphon.traverse.ConnectedComponents
object ConnectedComponents
Computes connected components of an undirected graph.
Uses getConnexions (the manual parent-tracking DFS on Traversable) to explore each component in turn, labelling vertices with a monotonically increasing component ID.
NOTE: this implementation is intended for undirected graphs only. For strongly connected components of a directed graph, see StronglyConnectedComponents (Kosaraju's algorithm) — to be implemented.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ConnectedComponents.type
Members list
In this article