Created utilities for converting to/from networkx. Renamed tests to be valid python modules (changed '-' to '_').