edgesFromTwoVertex method

List<Edge> edgesFromTwoVertex(
  1. Vertex start,
  2. Vertex? end
)

Implementation

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