GraphTheory[SpecialGraphs]
KneserGraph
construct Kneser graph
OddGraph
construct odd Kneser graph
Calling Sequence
Parameters
Description
Examples
KneserGraph(n,k)
OddGraph(d)
n, k, d
-
positive integers
The KneserGraph(n,k) command returns the Kneser graph with parameters n, k.
The OddGraph(d) command returns a Kneser graph with parameters n=2*d+1, k=d.
with⁡GraphTheory:with⁡SpecialGraphs:
P≔KneserGraph⁡5,2
P≔Graph 1: an undirected graph with 10 vertices and 15 edge(s)
NumberOfVertices⁡P
10
NumberOfEdges⁡P
15
ChromaticNumber⁡P
3
DrawGraph⁡P
See Also
SpecialGraphs
Download Help Document