Added graph creating method and classes

Main class is Graph where you can get a graph.