Implement GraphEdge Class.