networkx/networkx — pull request #801 by hagberg (2012-12-28 15:42:52+00:00)
Title: Fix density to handle single node with self loop case.

Make note that graphs with self loops can have density > 1.
Addresses #795