networkx/networkx — pull request #1093 by jfinkels (2014-04-02 20:21:13+00:00)
Title: Return empty graph for random 0-regular graph

There is exactly one 0-regular graph, namely the empty graph. A call to
`random_regular_graph(0, n)` now returns the empty graph on n nodes instead of
the null graph.