smarter graph, added dep data to nodes