MCPcopy Create free account
hub / github.com/Pometry/Raphtory / delete_edge

Method delete_edge

raphtory/src/python/graph/graph.rs:465–479  ·  view source on GitHub ↗

Deletes an edge given the timestamp, src and dst nodes and layer (optional). Arguments: timestamp (int): The timestamp of the edge. src (str | int): The id of the source node. dst (str | int): The id of the destination node. layer (str, optional): The layer of the edge. event_id (int, optional): The optional integer which will be used as an event id. Returns: MutableEdge: The deleted edge Raise

(
        &self,
        timestamp: EventTimeComponent,
        src: GID,
        dst: GID,
        layer: Option<&str>,
        event_id: Option<usize>,
    )

Source from the content-addressed store, hash-verified

463 /// Raises:
464 /// GraphError: If the operation fails.
465 pub fn delete_edge(
466 &self,
467 timestamp: EventTimeComponent,
468 src: GID,
469 dst: GID,
470 layer: Option<&str>,
471 event_id: Option<usize>,
472 ) -> Result<EdgeView<Graph>, GraphError> {
473 match event_id {
474 None => self.graph.delete_edge(timestamp, src, dst, layer),
475 Some(event_id) => self
476 .graph
477 .delete_edge((timestamp, event_id), src, dst, layer),
478 }
479 }
480
481 /// Import a single node into the graph.
482 ///

Callers 15

init_graph4Function · 0.45
test_persistent_graphMethod · 0.45
test_delete_edgeFunction · 0.45
test_snapshotFunction · 0.45
test_snapshotFunction · 0.45
test_basicsFunction · 0.45
test_hanging_edgesFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_persistent_graphMethod · 0.36
test_delete_edgeFunction · 0.36
test_snapshotFunction · 0.36
test_snapshotFunction · 0.36
test_basicsFunction · 0.36
test_hanging_edgesFunction · 0.36
test_overlapping_timesFunction · 0.36