(self, graph, kwds)
return vertex_order
Returns the order in which the vertices of the given graph have to be
        drawn, assuming that the relevant keyword arguments (C{vertex_order} and
        C{vertex_order_by}) are given in C{kwds} as a dictionary. If neither
        C{vertex_order} nor C{vertex_order_by} is present in C{kwds}, this
        function returns C{None} to indicate that the graph drawer is free to
        choose the most convenient vertex ordering.
Returns the order in which the vertices of the given graph have to be
        drawn, assuming that the relevant keyword arguments (C{vertex_order} and
        C{vertex_order_by}) are given in C{kwds} as a dictionary. If neither
        C{vertex_order} nor C{vertex_order_by} is present in C{kwds}, this
        function returns C{None} to indicate that the graph drawer is free to
        choose the most convenient vertex ordering.
Returns the order in which the vertices of the given graph have to be drawn assuming that the relevant keyword arguments ( C { vertex_order } and C { vertex_order_by } ) are given in C { kwds } as a dictionary . If neither C { vertex_order } nor C { vertex_order_by } is present in C { kwds } this function returns C { None } to indicate that the graph drawer is free to choose the most convenient vertex ordering .
def _determine_vertex_order(self, graph, kwds):
        """Returns the order in which the vertices of the given graph have to be
        drawn, assuming that the relevant keyword arguments (C{vertex_order} and
        C{vertex_order_by}) are given in C{kwds} as a dictionary. If neither
        C{vertex_order} nor C{vertex_order_by} is present in C{kwds}, this
        function returns C{None} to indicate that the graph drawer is free to
        choose the most convenient vertex ordering."""
        if "vertex_order" in kwds:
            # Vertex order specified explicitly
            return kwds["vertex_order"]

        if kwds.get("vertex_order_by") is None:
            # No vertex order specified
            return None

        # Order vertices by the value of some attribute
        vertex_order_by = kwds["vertex_order_by"]
        reverse = False
        if isinstance(vertex_order_by, tuple):
            vertex_order_by, reverse = vertex_order_by
            if isinstance(reverse, str):
                reverse = reverse.lower().startswith("desc")
        attrs = graph.vs[vertex_order_by]
        vertex_order = sorted(
            list(range(len(attrs))), key=attrs.__getitem__, reverse=bool(reverse)
        )

        return vertex_order
def _determine_vertex_order ( self , graph , kwds ) : if "vertex_order" in kwds : # Vertex order specified explicitly return kwds [ "vertex_order" ] if kwds . get ( "vertex_order_by" ) is None : # No vertex order specified return None # Order vertices by the value of some attribute vertex_order_by = kwds [ "vertex_order_by" ] reverse = False if isinstance ( vertex_order_by , tuple ) : vertex_order_by , reverse = vertex_order_by if isinstance ( reverse , str ) : reverse = reverse . lower ( ) . startswith ( "desc" ) attrs = graph . vs [ vertex_order_by ] vertex_order = sorted ( list ( range ( len ( attrs ) ) ) , key = attrs . __getitem__ , reverse = bool ( reverse ) ) return vertex_order