edgegraph.builder.explicit.link_undirected#
- edgegraph.builder.explicit.link_undirected(v1, v2, dontdup=False)#
Create a
UnDirectedEdgebetween the two vertices.Before:
After:
- Parameters:
v1 (Vertex) – One end of the link.
v2 (Vertex) – The other end of the link.
dontdup (bool) – If set to True, performs a check for any already-existing links between v1 and v2. If any are found (of any type, directed or undirected), no new link is created, but the already-existing one is returned silently.
- Returns:
The link that was created.
- Return type: