getAllEdges method

  1. @override
List<Edge> getAllEdges()
override

Returns a list of all edges in graph.

Implementation

@override
List<Edge> getAllEdges() {
  List<Edge> tmp = [];
  for (var element in graph.values) {
    tmp.addAll(element);
  }

  return tmp;
}