getNeighboringEdgesOfEdgeByString method

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

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

Implementation

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

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

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

  return found;
}