Change the graph and vertex...

I try to get rid of the Edge class.