List<Edge> edgesFromTwoVertex(Vertex start, Vertex? end) { if (end == null) return []; return edgesBetween[start]?[end] ?? edgesBetween[end]?[start] ?? []; }