Update graph.h

Fixed bug in edge constructor.