adding graph, vertices, edge class

adding graph, vertices, edge class