[−][src]Struct lib_dachshund::dachshund::typed_graph::TypedGraph
Keeps track of a bipartite graph composed of "core" and "non-core" nodes. Only core -> non-core connections may exist in the graph. The neighbors of core nodes are non-cores, the neighbors of non-core nodes are cores. Graph edges are stored in the neighbors field of each node. If the id of a node is known, its Node object can be retrieved via the nodes HashMap. To iterate over core and non-core nodes, the struct also provides the core_ids and non_core_ids vectors.
Fields
nodes: HashMap<NodeId, Node>
core_ids: Vec<NodeId>
non_core_ids: Vec<NodeId>
Trait Implementations
impl GraphBase for TypedGraph
[src]
fn get_core_ids(&self) -> &Vec<NodeId>
[src]
fn get_non_core_ids(&self) -> Option<&Vec<NodeId>>
[src]
fn get_mut_nodes(&mut self) -> &mut HashMap<NodeId, Node>
[src]
fn has_node(&self, node_id: NodeId) -> bool
[src]
fn get_node(&self, node_id: NodeId) -> &Node
[src]
fn count_edges(&self) -> usize
[src]
impl GraphBuilder<TypedGraph> for TypedGraphBuilder
[src]
fn _new(
nodes: HashMap<NodeId, Node>,
core_ids: Vec<NodeId>,
non_core_ids: Vec<NodeId>
) -> CLQResult<TypedGraph>
[src]
nodes: HashMap<NodeId, Node>,
core_ids: Vec<NodeId>,
non_core_ids: Vec<NodeId>
) -> CLQResult<TypedGraph>
fn init_nodes(
core_ids: &[NodeId],
non_core_ids: &[NodeId],
non_core_type_ids: &HashMap<NodeId, NodeTypeId>
) -> HashMap<NodeId, Node>
[src]
core_ids: &[NodeId],
non_core_ids: &[NodeId],
non_core_type_ids: &HashMap<NodeId, NodeTypeId>
) -> HashMap<NodeId, Node>
fn populate_edges(
rows: &[EdgeRow],
node_map: &mut HashMap<NodeId, Node>
) -> CLQResult<()>
[src]
rows: &[EdgeRow],
node_map: &mut HashMap<NodeId, Node>
) -> CLQResult<()>
fn trim_edges(
node_map: &mut HashMap<NodeId, Node>,
min_degree: &usize
) -> HashSet<NodeId>
[src]
node_map: &mut HashMap<NodeId, Node>,
min_degree: &usize
) -> HashSet<NodeId>
fn new(
graph_id: GraphId,
rows: &[EdgeRow],
min_degree: Option<usize>
) -> CLQResult<TGraph>
[src]
graph_id: GraphId,
rows: &[EdgeRow],
min_degree: Option<usize>
) -> CLQResult<TGraph>
fn prune(
graph: TGraph,
rows: &[EdgeRow],
min_degree: usize
) -> CLQResult<TGraph>
[src]
graph: TGraph,
rows: &[EdgeRow],
min_degree: usize
) -> CLQResult<TGraph>
fn get_filtered_sources_targets_rows(
graph: TGraph,
min_degree: usize,
rows: &[EdgeRow]
) -> (Vec<NodeId>, Vec<NodeId>, Vec<EdgeRow>)
[src]
graph: TGraph,
min_degree: usize,
rows: &[EdgeRow]
) -> (Vec<NodeId>, Vec<NodeId>, Vec<EdgeRow>)
Auto Trait Implementations
impl RefUnwindSafe for TypedGraph
impl Send for TypedGraph
impl Sync for TypedGraph
impl Unpin for TypedGraph
impl UnwindSafe for TypedGraph
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,