getNeighboringEdgesOfEdgeByString method

  1. @override
List<UndirectedEdge> getNeighboringEdgesOfEdgeByString(
  1. String a,
  2. String b
)
override

Gets all neighboring edges of an edge searched for by a and b

Implementation

@override
List<UndirectedEdge> getNeighboringEdgesOfEdgeByString(String a, String b) {
  List<UndirectedEdge> found = [];
  getOutgoingEdgesByString(a).forEach((element) {
    found.add(element);
  });

  getOutgoingEdgesByString(b).forEach((element) {
    found.add(element);
  });

  found.remove(getEdgeByString(a, b));
  found.remove(getEdgeByString(b, a));

  return found;
}