Added a Graph class that supports joining vertices with edges.