Adds to the graph implementations GetRootNodes and GetLeafNodes methods.
Allows to add a single node sequence to graph.