Return graph object