Graph constructor now checks for "hanging" edges

Constructor checks that for each edge points by both ends to existent
node.
Merge branch 'edgeValidation'