A simple graph implementation to help a friend