getAllVertices method

  1. @override
List<EpitaphVertex> getAllVertices()
override

Returns a list of all vertices in graph.

Implementation

@override
List<EpitaphVertex> getAllVertices() {
  List<EpitaphVertex> vertexList = [];
  for (var element in graph.keys) {
    vertexList.add(element);
  }
  return vertexList;
}