get all vertices and edges to in memory graph