GraphTheory
SequenceGraph
construct graph with specified degree sequence
Calling Sequence
Parameters
Description
Examples
References
SequenceGraph(L)
L
-
list
SequenceGraph(L) returns a graph with the specified degree sequence L, if such a graph exists. It raises an exception otherwise.
To check if a graph with given degree sequence exists, use IsGraphicSequence.
with⁡GraphTheory:
L≔3,2,4,2,3,4,5,7
IsGraphicSequence⁡L
true
G≔SequenceGraph⁡L
G≔Graph 1: an undirected graph with 8 vertices and 15 edges
sort⁡DegreeSequence⁡G
2,2,3,3,4,4,5,7
Hakimi S., "On Realizability of a Set of Integers as Degrees of the Vertices of a Linear Graph." I, Journal of SIAM, 10(3) (Sept 1962), pp. 496-506
See Also
DegreeSequence
IsGraphicSequence
Download Help Document