def get_all_vertex(self): "Return all the vertex on the graph" vertex = [] for key in self.__adjacent_list: vertex.append(key) return vertex
def get_all_vertex(self): """Return all the vertex on the graph Returns: list: return a list with all the vertex """ vertex = [] for key in self.__adjacent_list: vertex.append(key) return vertex