Added the ability to add nodes to the graph.