Graph addEdge(Edge<GraphNode> edge) { if (edges.contains(edge)) { return this; } edges.add(edge); return this; }