getNeighboringEdgesOfEdge method
Gets all neighboring edges of an edge
Implementation
@override
List<EpitaphEdge> getNeighboringEdgesOfEdge(Edge edge) {
List<EpitaphEdge> found = [];
getOutgoingEdges(edge.a).forEach((element) {
found.add(element);
});
getOutgoingEdges(edge.b).forEach((element) {
if (element.target != edge.a) {
found.add(element);
}
});
// Remove the edge itself
found.remove(edge);
return found;
}