NetworkX

Previous topic

max_flow_min_cost

Next topic

is_valid_degree_sequence

Graphical degree sequenceΒΆ

Generate graphs with a given degree sequence or expected degree sequence.

is_valid_degree_sequence(sequence[, method]) Returns True if the sequence is a valid degree sequence.
is_valid_degree_sequence_havel_hakimi(sequence) Returns True if the sequence is a valid degree sequence.
is_valid_degree_sequence_erdos_gallai(sequence) Returns True if the sequence is a valid degree sequence.