Updated parsing to handle simple SNAP formatted graphs.