IsIsomorphicGraph
Whether two Graph values have the same structure, up to relabelling vertices.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
IsomorphicGraphQ✓IsIsomorphicGraph(g1, g2)true iff some relabelling of g1's vertices reproduces g2's edges exactly (direction included); unevaluated once either graph has more than 9 vertices.Typed signatures
| Type | Package | Applies |
|---|---|---|
(value, value) -> boolean | combinatorics | always |
Details
- Wolfram calls this
IsomorphicGraphQ; this library uses theIs…spelling everywhere. - Brute force over all n! vertex permutations, cheap-filtered first by vertex count, edge count and sorted degree sequence -- fine through 9 vertices (9! = 362,880), unevaluated beyond that rather than guessing.
Examples
About
| Examples | 3 |
|---|---|
| Checked against | Wolfram Language 3 agreeSageMath 3 agree |
| Crosswalk | Wolfram Language |
Implementation
mapped
sagepackages/oracle/src/mappings.ts See also: IsConnectedGraph