adding graph class and node for basic creation of graphs.