Graph Isomorphism - Input reading