Methods in MyGraph

I think the element in the MyEdge class is used if we needed weighted
edges.