pub trait EdgeStore: HasEdgeStore {
Show 23 methods // Provided methods fn edges_len(&self) -> usize { ... } fn is_edges_empty(&self) -> bool { ... } fn add_edge<N: NodeStore>( &mut self, edge: Edge, safe: bool, nodes: Option<&N> ) -> Result<Option<Edge>, Error> { ... } fn extend_edges<N: NodeStore>( &mut self, edges: Vec<Edge>, safe: bool, nodes: Option<&N> ) -> Result<Vec<Edge>, Error> { ... } fn check<N: NodeStore>(&self, edge: &Edge, nodes: &N) -> Result<(), Error> { ... } fn del(&mut self, id: &Uuid) -> Option<Edge> { ... } fn get_edge(&self, id: &Uuid) -> Option<&Edge> { ... } fn all_edges(&self) -> Vec<&Edge> { ... } fn edge_ids_between(&self, source: &Uuid, target: &Uuid) -> HashSet<Uuid> { ... } fn edges_between(&self, source: &Uuid, target: &Uuid) -> Vec<&Edge> { ... } fn edge_ids_between_all( &self, sources: &HashSet<Uuid>, targets: &HashSet<Uuid> ) -> HashSet<Uuid> { ... } fn edges_between_all( &self, sources: &HashSet<Uuid>, targets: &HashSet<Uuid> ) -> Vec<&Edge> { ... } fn aggregate_between(&self, source: &Uuid, target: &Uuid) -> Aggregate { ... } fn aggregate_between_all( &self, sources: HashSet<Uuid>, targets: HashSet<Uuid> ) -> Aggregate { ... } fn outgoing_ids_from(&self, source: &Uuid) -> HashSet<Uuid> { ... } fn outgoing_edges_from(&self, source: &Uuid) -> Vec<&Edge> { ... } fn incoming_ids_to(&self, target: &Uuid) -> HashSet<Uuid> { ... } fn incoming_edges_to(&self, target: &Uuid) -> Vec<&Edge> { ... } fn targets_of(&self, source: &Uuid) -> HashSet<Uuid> { ... } fn sources_to(&self, target: &Uuid) -> HashSet<Uuid> { ... } fn is_connected_to( &self, node: &Uuid, others: &HashSet<Uuid>, edge_ids: Option<&HashSet<Uuid>> ) -> bool { ... } fn get_aggregate_value( &self, source: &Uuid, target: &Uuid, aggregator: &Aggregator, fields: Option<&HashSet<String>> ) -> f64 { ... } fn get_adjacency_matrix( &self, sources: &Vec<&Uuid>, targets: &Vec<&Uuid>, aggregator: &Aggregator, fields: Option<&HashSet<String>> ) -> DMatrix<f64> { ... }
}

Provided Methods§

source

fn edges_len(&self) -> usize

source

fn is_edges_empty(&self) -> bool

source

fn add_edge<N: NodeStore>( &mut self, edge: Edge, safe: bool, nodes: Option<&N> ) -> Result<Option<Edge>, Error>

source

fn extend_edges<N: NodeStore>( &mut self, edges: Vec<Edge>, safe: bool, nodes: Option<&N> ) -> Result<Vec<Edge>, Error>

source

fn check<N: NodeStore>(&self, edge: &Edge, nodes: &N) -> Result<(), Error>

source

fn del(&mut self, id: &Uuid) -> Option<Edge>

source

fn get_edge(&self, id: &Uuid) -> Option<&Edge>

source

fn all_edges(&self) -> Vec<&Edge>

source

fn edge_ids_between(&self, source: &Uuid, target: &Uuid) -> HashSet<Uuid>

source

fn edges_between(&self, source: &Uuid, target: &Uuid) -> Vec<&Edge>

source

fn edge_ids_between_all( &self, sources: &HashSet<Uuid>, targets: &HashSet<Uuid> ) -> HashSet<Uuid>

source

fn edges_between_all( &self, sources: &HashSet<Uuid>, targets: &HashSet<Uuid> ) -> Vec<&Edge>

source

fn aggregate_between(&self, source: &Uuid, target: &Uuid) -> Aggregate

source

fn aggregate_between_all( &self, sources: HashSet<Uuid>, targets: HashSet<Uuid> ) -> Aggregate

source

fn outgoing_ids_from(&self, source: &Uuid) -> HashSet<Uuid>

source

fn outgoing_edges_from(&self, source: &Uuid) -> Vec<&Edge>

source

fn incoming_ids_to(&self, target: &Uuid) -> HashSet<Uuid>

source

fn incoming_edges_to(&self, target: &Uuid) -> Vec<&Edge>

source

fn targets_of(&self, source: &Uuid) -> HashSet<Uuid>

source

fn sources_to(&self, target: &Uuid) -> HashSet<Uuid>

source

fn is_connected_to( &self, node: &Uuid, others: &HashSet<Uuid>, edge_ids: Option<&HashSet<Uuid>> ) -> bool

source

fn get_aggregate_value( &self, source: &Uuid, target: &Uuid, aggregator: &Aggregator, fields: Option<&HashSet<String>> ) -> f64

source

fn get_adjacency_matrix( &self, sources: &Vec<&Uuid>, targets: &Vec<&Uuid>, aggregator: &Aggregator, fields: Option<&HashSet<String>> ) -> DMatrix<f64>

Implementors§