Added networkx is optional for pydenali.
Fixed the case where merge node was root, had multiple children.