updated usage of graph