connected graph with data