GraphTheory[SpecialGraphs]
JohnsonGraph
construct Johnson graph
Calling Sequence
Parameters
Description
Examples
References
Compatibility
JohnsonGraph(n,k)
n
-
positive integer
k
nonnegative integer
The JohnsonGraph(n, k) command constructs the (n,k) Johnson graph. This is an undirected graph in which the vertices correspond to k-element subsets of {1,…,k}, and an edge exists between two vertices when the intersection of their associated subsets has cardinality k-1.
with⁡GraphTheory:
with⁡SpecialGraphs:
J52≔JohnsonGraph⁡5,2
J52≔Graph 1: an undirected unweighted graph with 10 vertices and 30 edge(s)
ChromaticNumber⁡J52
5
DrawGraph⁡J52
"Johnson graph", Wikipedia. http://en.wikipedia.org/wiki/Johnson_graph
The GraphTheory[SpecialGraphs][JohnsonGraph] command was introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
See Also
SpecialGraphs
Download Help Document
What kind of issue would you like to report? (Optional)