new function to add a more complete graph to the logic graph that will make queries easier, instead of having to traverse the graph.