fixed references to edges, mean - lastpose.graphPose and destructor of graph.cpp