CirculantGraph
The circulant graph on n vertices arranged in a circle, joined by one or more fixed offsets.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
CirculantGraph✓CirculantGraph(n, k)vertex i joined to i +/- k (mod n), for a single offset k.SageMath
enumeratio_graph(graphs.CirculantGraph(n, k))CirculantGraph(n, {k1, k2, …})the union of the connection sets for every offset given.Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, integer | list<integer>) -> value | combinatorics | always |
Details
- Each vertex has degree 2 per offset, except an offset of exactly n/2 (n even), which gives only one edge per vertex (i and i + n/2 are each other's only match at that offset).
Examples
Properties #
About
| Examples | 8 |
|---|---|
| Checked against | Wolfram Language 8 agreeSageMath 3 agree4 differ |
| Crosswalk | Wolfram LanguageSageMath |
Implementation
mapped
sagepackages/oracle/src/mappings.ts See also: CycleGraph, HararyGraph