[−][src]Struct lib_dachshund::dachshund::simple_undirected_graph::SimpleUndirectedGraph
Keeps track of a simple undirected graph, composed of nodes without any type information.
Fields
nodes: HashMap<NodeId, Node>
ids: Vec<NodeId>
Implementations
impl SimpleUndirectedGraph
[src]
pub fn as_input_rows(&self, graph_id: usize) -> String
[src]
pub fn get_node_degree(&self, id: NodeId) -> usize
[src]
pub fn get_clustering_coefficient(&self, id: NodeId) -> Option<f64>
[src]
pub fn get_avg_clustering(&self) -> f64
[src]
pub fn triangle_count(&self, node_id: NodeId) -> usize
[src]
pub fn triples_count(&self, node_id: NodeId) -> usize
[src]
pub fn get_transitivity(&self) -> f64
[src]
pub fn get_approx_avg_clustering(&self, samples: usize) -> f64
[src]
pub fn get_approx_transitivity(&self, samples: usize) -> f64
[src]
pub fn get_shortest_paths(
&self,
source: NodeId,
nodes_in_connected_component: Option<&Vec<NodeId>>
) -> (HashMap<NodeId, Option<usize>>, HashMap<NodeId, HashSet<NodeId>>)
[src]
&self,
source: NodeId,
nodes_in_connected_component: Option<&Vec<NodeId>>
) -> (HashMap<NodeId, Option<usize>>, HashMap<NodeId, HashSet<NodeId>>)
pub fn get_shortest_paths_bfs(
&self,
source: NodeId
) -> (Vec<NodeId>, HashMap<NodeId, u32>, HashMap<NodeId, Vec<NodeId>>)
[src]
&self,
source: NodeId
) -> (Vec<NodeId>, HashMap<NodeId, u32>, HashMap<NodeId, Vec<NodeId>>)
Single source paths in a unweighted, undirected graph by bfs. Returns nodes in the order of exploration, distances, and predecesors.
pub fn enumerate_shortest_paths(
&self,
dist: &HashMap<NodeId, Option<usize>>,
parents: &HashMap<NodeId, HashSet<NodeId>>,
destination: NodeId
) -> HashMap<NodeId, Vec<Vec<NodeId>>>
[src]
&self,
dist: &HashMap<NodeId, Option<usize>>,
parents: &HashMap<NodeId, HashSet<NodeId>>,
destination: NodeId
) -> HashMap<NodeId, Vec<Vec<NodeId>>>
pub fn visit_nodes_from_root(
&self,
root: &NodeId,
visited: &mut BTreeSet<NodeId>
)
[src]
&self,
root: &NodeId,
visited: &mut BTreeSet<NodeId>
)
pub fn get_is_connected(&self) -> Result<bool, &'static str>
[src]
pub fn create_empty() -> Self
[src]
pub fn get_node_betweenness_starting_from_sources(
&self,
sources: &[NodeId],
check_is_connected: bool,
nodes_in_connected_component: Option<&Vec<NodeId>>
) -> Result<HashMap<NodeId, f64>, &'static str>
[src]
&self,
sources: &[NodeId],
check_is_connected: bool,
nodes_in_connected_component: Option<&Vec<NodeId>>
) -> Result<HashMap<NodeId, f64>, &'static str>
pub fn get_node_betweenness(&self) -> Result<HashMap<NodeId, f64>, &'static str>
[src]
pub fn get_node_betweenness_brandes(
&self
) -> Result<HashMap<NodeId, f64>, &'static str>
[src]
&self
) -> Result<HashMap<NodeId, f64>, &'static str>
pub fn get_degree_matrix(&self) -> (DMatrix<f64>, Vec<NodeId>)
[src]
pub fn get_adjacency_matrix_given_node_ids(
&self,
node_ids: &[NodeId]
) -> DMatrix<f64>
[src]
&self,
node_ids: &[NodeId]
) -> DMatrix<f64>
pub fn get_adjacency_matrix(&self) -> (DMatrix<f64>, Vec<NodeId>)
[src]
pub fn get_laplacian_matrix(&self) -> (DMatrix<f64>, Vec<NodeId>)
[src]
pub fn get_algebraic_connectivity(&self) -> f64
[src]
pub fn get_eigenvector_centrality(
&self,
eps: f64,
max_iter: usize
) -> HashMap<NodeId, f64>
[src]
&self,
eps: f64,
max_iter: usize
) -> HashMap<NodeId, f64>
pub fn _get_connected_components_membership(
&self,
ignore_nodes: Option<&HashSet<NodeId>>,
ignore_edges: Option<&HashSet<(NodeId, NodeId)>>
) -> (HashMap<NodeId, usize>, usize)
[src]
&self,
ignore_nodes: Option<&HashSet<NodeId>>,
ignore_edges: Option<&HashSet<(NodeId, NodeId)>>
) -> (HashMap<NodeId, usize>, usize)
pub fn _get_connected_components(
&self,
ignore_nodes: Option<&HashSet<NodeId>>,
ignore_edges: Option<&HashSet<(NodeId, NodeId)>>
) -> Vec<Vec<NodeId>>
[src]
&self,
ignore_nodes: Option<&HashSet<NodeId>>,
ignore_edges: Option<&HashSet<(NodeId, NodeId)>>
) -> Vec<Vec<NodeId>>
pub fn get_connected_components(&self) -> Vec<Vec<NodeId>>
[src]
pub fn _get_k_cores(
&self,
k: usize,
removed: &mut HashSet<NodeId>
) -> Vec<Vec<NodeId>>
[src]
&self,
k: usize,
removed: &mut HashSet<NodeId>
) -> Vec<Vec<NodeId>>
pub fn get_k_cores(&self, k: usize) -> Vec<Vec<NodeId>>
[src]
pub fn get_coreness(&self) -> (Vec<Vec<Vec<NodeId>>>, HashMap<NodeId, usize>)
[src]
pub fn _get_k_trusses(
&self,
k: usize,
ignore_nodes: &HashSet<NodeId>
) -> (Vec<BTreeSet<(NodeId, NodeId)>>, HashSet<BTreeSet<NodeId>>)
[src]
&self,
k: usize,
ignore_nodes: &HashSet<NodeId>
) -> (Vec<BTreeSet<(NodeId, NodeId)>>, HashSet<BTreeSet<NodeId>>)
pub fn get_k_trusses(
&self,
k: usize
) -> (Vec<BTreeSet<(NodeId, NodeId)>>, HashSet<BTreeSet<NodeId>>)
[src]
&self,
k: usize
) -> (Vec<BTreeSet<(NodeId, NodeId)>>, HashSet<BTreeSet<NodeId>>)
Trait Implementations
impl GraphBase for SimpleUndirectedGraph
[src]
fn get_core_ids(&self) -> &Vec<NodeId>
[src]
core and non-core IDs are the same for a SimpleUndirectedGraph
.
fn get_non_core_ids(&self) -> Option<&Vec<NodeId>>
[src]
core and non-core IDs are the same for a SimpleUndirectedGraph
.
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<SimpleUndirectedGraph> for SimpleUndirectedGraphBuilder
[src]
fn _new(
nodes: HashMap<NodeId, Node>,
core_ids: Vec<NodeId>,
non_core_ids: Vec<NodeId>
) -> CLQResult<SimpleUndirectedGraph>
[src]
nodes: HashMap<NodeId, Node>,
core_ids: Vec<NodeId>,
non_core_ids: Vec<NodeId>
) -> CLQResult<SimpleUndirectedGraph>
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 SimpleUndirectedGraph
impl Send for SimpleUndirectedGraph
impl Sync for SimpleUndirectedGraph
impl Unpin for SimpleUndirectedGraph
impl UnwindSafe for SimpleUndirectedGraph
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>,