pub struct MinimumUnionCycle<GH> { /* private fields */ }Expand description
| not sure yet TODO |
Implementations§
Source§impl<GH> MinimumUnionCycle<GH>where
GH: GetConnectedComponentSizes + ExtendWith<GH> + GetEdges + GetNeighborsForNode + GetNodeIdRange + HasMapForNode + InsertEdge + InsertNode + MappedNodes + NumEdges + NumNodes,
impl<GH> MinimumUnionCycle<GH>where
GH: GetConnectedComponentSizes + ExtendWith<GH> + GetEdges + GetNeighborsForNode + GetNodeIdRange + HasMapForNode + InsertEdge + InsertNode + MappedNodes + NumEdges + NumNodes,
pub fn vertex_map(&self) -> LockResult<MutexGuard<'_, ConnVertexMap>>
pub fn set_muc_subgraph(&mut self, gh: GH)
pub fn insert_subgraph(&mut self, idx: NodeId, g: Arc<GH>)
pub fn clear_conn_vertex_map(&mut self)
pub fn id(&self) -> MinimumUnionCycleId
pub fn set_id(&mut self, new: usize)
pub fn clear_subgraph_map(&mut self)
pub fn invalidate(&mut self)
pub fn connection_vertices( &self, ) -> Result<Vec<ConnectionVertexDescriptor>, BetweennessCentralityError>
pub fn bridges(&self) -> Result<Vec<Edge>, BetweennessCentralityError>
Sourcepub fn insert_conn_vertex(
&mut self,
id: NodeId,
nbr: NodeId,
) -> Result<(), BetweennessCentralityError>
pub fn insert_conn_vertex( &mut self, id: NodeId, nbr: NodeId, ) -> Result<(), BetweennessCentralityError>
| make sure the node with @id exists in | the muc! this function will blindly | insert it |
pub fn compute_bc_initialize(&mut self)
pub fn compute_bc_initialize_tmp_conn_vertex_map( &mut self, ) -> Result<(), BetweennessCentralityError>
pub fn compute_bc_initialize_tmp_subgraph_map( &mut self, ) -> Result<(), BetweennessCentralityError>
pub fn initialize_scores_for_muc_subgraph(&self, scores: &mut BetweennessScores)
pub fn adjust_max_iter(&self, max_iter: Option<usize>) -> usize
pub fn initialize_bfs_for_node_in_the_muc(&mut self, source: NodeId)
pub fn build_stack_for_bfs(&mut self) -> NodeIdStack
pub fn bfs_process_stack_item( &mut self, v_n: NodeId, source: NodeId, scores: &mut BetweennessScores, )
pub fn do_bfs_for_node_in_the_muc( &mut self, source: NodeId, scores: &mut BetweennessScores, )
pub fn do_bf_searches_from_the_nodes_in_the_muc( &mut self, max_iter: usize, scores: &mut BetweennessScores, )
pub fn update_scores_after_bfs( &self, scores: &mut BetweennessScores, ) -> Result<(), BetweennessCentralityError>
pub fn compute_bc( &mut self, scores: &mut BetweennessScores, max_iter: Option<usize>, ) -> Result<(), BetweennessCentralityError>
pub fn compute_bc_inc( &mut self, scores: &mut BetweennessScores, src: NodeId, dst: NodeId, max_iter: Option<usize>, ) -> Result<(), BetweennessCentralityError>
pub fn iteration( &mut self, source: NodeId, src: NodeId, dst: NodeId, src_distance: f64, dst_distance: f64, scores: &mut BetweennessScores, )
pub fn iteration_1_process( &mut self, v_n: NodeId, source: NodeId, src: NodeId, dst: NodeId, src_distance: f64, dst_distance: f64, scores: &mut BetweennessScores, ) -> Result<(), BetweennessCentralityError>
pub fn iteration_1( &mut self, source: NodeId, src: NodeId, dst: NodeId, src_distance: f64, dst_distance: f64, scores: &mut BetweennessScores, ) -> Result<(), BetweennessCentralityError>
pub fn iteration_2( &mut self, source: NodeId, src: NodeId, dst: NodeId, src_distance: f64, dst_distance: f64, scores: &mut BetweennessScores, ) -> Result<(), BetweennessCentralityError>
Trait Implementations§
Source§impl<GH> Debug for MinimumUnionCycle<GH>where
GH: ExtendWith<GH> + GetConnectedComponentSizes + GetEdges + GetNeighborsForNode + GetNodeIdRange + HasMapForNode + InsertEdge + InsertNode + MappedNodes + NumEdges + NumNodes + SetPrintNodes + Debug,
impl<GH> Debug for MinimumUnionCycle<GH>where
GH: ExtendWith<GH> + GetConnectedComponentSizes + GetEdges + GetNeighborsForNode + GetNodeIdRange + HasMapForNode + InsertEdge + InsertNode + MappedNodes + NumEdges + NumNodes + SetPrintNodes + Debug,
Source§impl<GH> Default for MinimumUnionCycle<GH>
impl<GH> Default for MinimumUnionCycle<GH>
Source§impl<GH> ExtendWith<MinimumUnionCycle<GH>> for MinimumUnionCycle<GH>where
GH: GetConnectedComponentSizes + ExtendWith<GH, Error = BetweennessCentralityError> + GetEdges + GetNeighborsForNode + GetNodeIdRange + HasMapForNode + InsertEdge + InsertNode + MappedNodes + NumEdges + NumNodes,
impl<GH> ExtendWith<MinimumUnionCycle<GH>> for MinimumUnionCycle<GH>where
GH: GetConnectedComponentSizes + ExtendWith<GH, Error = BetweennessCentralityError> + GetEdges + GetNeighborsForNode + GetNodeIdRange + HasMapForNode + InsertEdge + InsertNode + MappedNodes + NumEdges + NumNodes,
Source§fn extend_with(
&mut self,
other: &MinimumUnionCycle<GH>,
) -> Result<(), Self::Error>
fn extend_with( &mut self, other: &MinimumUnionCycle<GH>, ) -> Result<(), Self::Error>
muc1 = muc1 U muc2
-
copy the graph of muc2 into muc1
-
for each bridge edge, if the other end becomes in the graph, add the edge
type Error = BetweennessCentralityError
Source§impl<GH> GetEdges for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> GetEdges for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
Source§impl<GH> GetPrintNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> GetPrintNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
fn get_print_nodes(&self) -> bool
Source§impl<GH> HasMapForNode for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> HasMapForNode for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
fn has_map_for_node(&self, n: NodeId) -> bool
Source§impl<GH> InsertEdge for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> InsertEdge for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
fn insert_edge(&mut self, edge: &Edge) -> Result<(), BetweennessCentralityError>
Source§impl<GH> InsertNode for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> InsertNode for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
fn insert_node(&mut self, n: NodeId)
Source§impl<GH> MappedNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> MappedNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
fn mapped_nodes(&self) -> Vec<NodeId>
Source§impl<GH> Named for MinimumUnionCycle<GH>
impl<GH> Named for MinimumUnionCycle<GH>
Source§impl<GH> NumEdges for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> NumEdges for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
Source§impl<GH> NumNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> NumNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
Source§impl<GH> SetPrintNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
impl<GH> SetPrintNodes for MinimumUnionCycle<GH>where
GH: GraphHashMucInterface,
fn set_print_nodes(&self, val: bool)
Auto Trait Implementations§
impl<GH> !Freeze for MinimumUnionCycle<GH>
impl<GH> RefUnwindSafe for MinimumUnionCycle<GH>where
GH: RefUnwindSafe,
impl<GH> Send for MinimumUnionCycle<GH>
impl<GH> Sync for MinimumUnionCycle<GH>
impl<GH> Unpin for MinimumUnionCycle<GH>where
GH: Unpin,
impl<GH> UnwindSafe for MinimumUnionCycle<GH>where
GH: UnwindSafe + RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PoisonMessage for Twhere
T: Debug,
impl<T> PoisonMessage for Twhere
T: Debug,
fn poison_message(&self) -> String
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.