Construct a graph from a set of nodes (and edges).
NodeExistsException if a node already exists when trying to insert it. EdgeExistsException if an edge already exists when trying to insert it.
See Implementation
Construct a graph from a set of nodes (and edges).