change graph to use constructor instead of [init]
Update graph.cpp
Merge pull request #9 from danielf/graph_dev_constructor

change graph to use constructor instead of [init]