making the graph intelligent