is_graphical(out.deg, in.deg = NULL)
NULL
or an integer vector. For undireted graphs, it
should be NULL
. For directed graphs it specifies the in-degrees.PL Erdos, I Miklos and Z Toroczkai: A simple Havel-Hakimi type algorithm to realize graphical degree sequences of directed graphs. The Electronic Journal of Combinatorics 17(1):R66, 2010.
g <- sample_gnp(100, 2/100)
is_degseq(degree(g))
is_graphical(degree(g)): is.degree.sequence
,
is_degseq