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>,
)
| 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 | /// |
no outgoing calls