Add an edge to the graph.
Both the given nodes should already have been added to the graph through addNode.
the parent node
the node which has is an incoming edge to node
node