Added some functionality around grabbing top/bottom nodes from our DAGs