wrong type of graph used