CellNetwork.add_edge
- CellNetwork.add_edge(u, v, attr_dict=None, **kwattr)[source]
Add an edge and specify its attributes.
- Parameters:
- uint
The identifier of the first node of the edge.
- vint
The identifier of the second node of the edge.
- attr_dictdict[str, Any], optional
A dictionary of edge attributes.
- **kwattrdict[str, Any], optional
A dictionary of additional attributes compiled of remaining named arguments.
- Returns:
- tuple[int, int]
The identifier of the edge.
- Raises:
- ValueError
If either of the vertices of the edge does not exist.
Notes
Edges can be added independently from faces or cells. However, whenever a face is added all edges of that face are added as well.