Dependency graph interface updated.
The dependency graph is now stored as an actual graph data structure rather than references to parent and child contours inside each contour.