dynetworkx.ImpulseGraph.remove_edge¶
-
ImpulseGraph.
remove_edge
(u, v, begin=None, end=None, inclusive=(True, True))¶ Remove the edge between u and v in the impulse graph, during the given interval.
Quiet if the specified edge is not present.
Parameters: - v (u,) – Nodes can be, for example, strings or numbers. Nodes must be hashable (and not None) Python objects.
- begin (int or float, optional (default= beginning of the entire interval graph)) –
- end (int or float, optional (default= end of the entire interval graph + 1)) – Must be bigger than or equal to begin.
- inclusive (2-tuple boolean that determines inclusivity of begin and end) –
Examples
>>> G = dnx.ImpulseGraph() >>> G.add_edges_from([(1, 2, 10), (2, 4, 11), (6, 4, 9), (1, 2, 15)]) >>> G.remove_edge(1, 2) >>> G.has_edge(1, 2) False
>>> G = dnx.ImpulseGraph() >>> G.add_edges_from([(1, 2, 10), (2, 4, 11), (6, 4, 9), (1, 2, 15)]) >>> G.remove_edge(1, 2, begin=2, end=11) >>> G.has_edge(1, 2, begin=2, end=11) False >>> G.has_edge(1, 2) True