networkx.generators.degree_seq.havel_hakimi_graph
networkx.generators.degree_seq.is_valid_degree_sequence_havel_hakimi
Enter search terms or a module, class or function name.
Make a tree for the given degree sequence.
A tree has #nodes-#edges=1 so the degree sequence must have len(deg_sequence)-sum(deg_sequence)/2=1