Generalized parsing to support graphs from both DIMACS and SNAP.
Updated readme.