Added a generic graph with a data on the nodes and edges