示例#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