Clean up some helper functions into the Dag to make querying of graph info cleaner