removed networkx dependency
Removed networkx dependency. Closes #296
Merge branch 'remove_networkx' into es