layed out the graph api