IsConnectedGraph
Whether a Graph is connected — a single component; strongly connected when it has directed edges.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
ConnectedGraphQ✓IsConnectedGraph(g)true iff the graph is one component, respecting edge direction (false for a graph with no vertices).Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> boolean | combinatorics | always |
Details
- Wolfram calls this
ConnectedGraphQ; this library uses theIs…spelling everywhere. - Respects direction, as Wolfram's
ConnectedGraphQdoes: a directed graph is connected only when it is strongly connected, so a single directed edge is not. IsTreeGraph still reads the underlying undirected graph.
Examples
About
| Examples | 4 |
|---|---|
| Checked against | Wolfram Language 4 agree |
| Crosswalk | Wolfram Language |
See also: ConnectedComponents, IsTreeGraph