simple graph

simple graph, print graph in c++