IsTreeGraph
Whether a Graph is a tree — connected, with exactly edges.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
TreeGraphQ✓IsTreeGraph(g)true iff is connected (underlying, direction ignored) and has exactly edges — the standard connected-plus-edge-count tree test.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value) -> boolean | combinatorics | always |
Details
- Wolfram calls this
TreeGraphQ; this library uses theIs…spelling everywhere.
Examples
3 more kept as data, checked against the oraclesAbout
| Examples | 6 |
|---|---|
| Checked against | Wolfram Language 5 agree |
| Crosswalk | Wolfram Language |
See also: IsConnectedGraph, CompleteKaryTree