Fixed typo in graph code