(self, name=None, **kwds)
return vertex
Adds a single vertex to the graph. Keyword arguments will be assigned
        as vertex attributes. Note that C{name} as a keyword argument is treated
        specially; if a graph has C{name} as a vertex attribute, it allows one
        to refer to vertices by their names in most places where igraph expects
        a vertex ID.

        @return: the newly added vertex as a L{Vertex} object. Use
            C{add_vertices(1)} if you don't need the L{Vertex} object and want
            to avoid the overhead of creating t.
Adds a single vertex to the graph. Keyword arguments will be assigned
        as vertex attributes. Note that C{name} as a keyword argument is treated
        specially; if a graph has C{name} as a vertex attribute, it allows one
        to refer to vertices by their names in most places where igraph expects
        a vertex ID.
Adds a single vertex to the graph . Keyword arguments will be assigned as vertex attributes . Note that C { name } as a keyword argument is treated specially ; if a graph has C { name } as a vertex attribute it allows one to refer to vertices by their names in most places where igraph expects a vertex ID .
def add_vertex(self, name=None, **kwds):
        """Adds a single vertex to the graph. Keyword arguments will be assigned
        as vertex attributes. Note that C{name} as a keyword argument is treated
        specially; if a graph has C{name} as a vertex attribute, it allows one
        to refer to vertices by their names in most places where igraph expects
        a vertex ID.

        @return: the newly added vertex as a L{Vertex} object. Use
            C{add_vertices(1)} if you don't need the L{Vertex} object and want
            to avoid the overhead of creating t.
        """
        vid = self.vcount()
        self.add_vertices(1)
        vertex = self.vs[vid]
        for key, value in kwds.items():
            vertex[key] = value
        if name is not None:
            vertex["name"] = name
        return vertex
def add_vertex ( self , name = None , * * kwds ) : vid = self . vcount ( ) self . add_vertices ( 1 ) vertex = self . vs [ vid ] for key , value in kwds . items ( ) : vertex [ key ] = value if name is not None : vertex [ "name" ] = name return vertex