Include all nodes in a directed graph in the graph's top-level key set
Add function to get all nodes in a graph