added reading number of nodes and edges