GridGraph
A rectangular (or higher-dimensional) grid graph.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
GridGraph✓GridGraph(dims)the Cartesian product of paths of the given lengths — GridGraph({m, n}) is an grid. Vertices are numbered 1-based, the first index varying fastest, as in Wolfram.SageMath
enumeratio_graph(graphs.GridGraph(dims))Typed signatures
| Type | Package | Applies |
|---|---|---|
(list<integer>) -> value | combinatorics | always |
Examples
Basic #
Dimensions are given as a list, so a three- and a four-dimensional grid come from lists of s Vertices are numbered with the first index varying fastest, as in Wolfram (our own convention, not a known value).
live ↗InOut
Scope #
Vertices are numbered with the first index varying fastest, as in Wolfram (our own convention, not a known value).
live ↗InOut
Properties #
A grid is the -cycle Vertices are numbered with the first index varying fastest, as in Wolfram (our own convention, not a known value).
live ↗InOut
A grid is the cube graph Vertices are numbered with the first index varying fastest, as in Wolfram (our own convention, not a known value).
live ↗InOut
About
| Examples | 11 |
|---|---|
| Checked against | Wolfram Language 11 agreeSageMath 3 agree4 differ |
| Crosswalk | Wolfram LanguageSageMath |
Implementation
mapped
sagepackages/oracle/src/mappings.ts See also: HypercubeGraph, CompleteGraph