CellNetwork.add_vertex
- CellNetwork.add_vertex(key=None, attr_dict=None, **kwattr)[source]
Add a vertex and specify its attributes.
- Parameters:
- keyint, optional
The identifier of the vertex. Defaults to None.
- attr_dictdict, optional
A dictionary of vertex attributes. Defaults to None.
- **kwattrdict, optional
A dictionary of additional attributes compiled of remaining named arguments.
- Returns:
- int
The identifier of the vertex.
See also