added graph.java and node.java