Пример #1
0
    def get_all_vertex(self):
        "Return all the vertex on the graph"

        vertex = []
        for key in self.__adjacent_list:
            vertex.append(key)

        return vertex
Пример #2
0
    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