networkx/networkx — pull request #777 by hagberg (2012-10-17 13:37:13+00:00)
Title: Force float dtype in to_scipy_sparse_matrix().

This fixes the reported divide by zero error.