Struct MinimumUnionCycle

Source
pub struct MinimumUnionCycle<GH> { /* private fields */ }
Expand description

| not sure yet TODO |

Implementations§

Source§

impl<GH> MinimumUnionCycle<GH>

Source

pub fn vertex_map(&self) -> LockResult<MutexGuard<'_, ConnVertexMap>>

Source

pub fn set_muc_subgraph(&mut self, gh: GH)

Source

pub fn insert_subgraph(&mut self, idx: NodeId, g: Arc<GH>)

Source

pub fn clear_conn_vertex_map(&mut self)

Source

pub fn id(&self) -> MinimumUnionCycleId

Source

pub fn set_id(&mut self, new: usize)

Source

pub fn clear_subgraph_map(&mut self)

Source

pub fn invalidate(&mut self)

Source

pub fn connection_vertices( &self, ) -> Result<Vec<ConnectionVertexDescriptor>, BetweennessCentralityError>

Source

pub fn bridges(&self) -> Result<Vec<Edge>, BetweennessCentralityError>

Source

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 |

Source

pub fn compute_bc_initialize(&mut self)

Source

pub fn compute_bc_initialize_tmp_conn_vertex_map( &mut self, ) -> Result<(), BetweennessCentralityError>

Source

pub fn compute_bc_initialize_tmp_subgraph_map( &mut self, ) -> Result<(), BetweennessCentralityError>

Source

pub fn initialize_scores_for_muc_subgraph(&self, scores: &mut BetweennessScores)

Source

pub fn adjust_max_iter(&self, max_iter: Option<usize>) -> usize

Source

pub fn initialize_bfs_for_node_in_the_muc(&mut self, source: NodeId)

Source

pub fn build_stack_for_bfs(&mut self) -> NodeIdStack

Source

pub fn bfs_process_stack_item( &mut self, v_n: NodeId, source: NodeId, scores: &mut BetweennessScores, )

Source

pub fn do_bfs_for_node_in_the_muc( &mut self, source: NodeId, scores: &mut BetweennessScores, )

Source

pub fn do_bf_searches_from_the_nodes_in_the_muc( &mut self, max_iter: usize, scores: &mut BetweennessScores, )

Source

pub fn update_scores_after_bfs( &self, scores: &mut BetweennessScores, ) -> Result<(), BetweennessCentralityError>

Source

pub fn compute_bc( &mut self, scores: &mut BetweennessScores, max_iter: Option<usize>, ) -> Result<(), BetweennessCentralityError>

Source

pub fn compute_bc_inc( &mut self, scores: &mut BetweennessScores, src: NodeId, dst: NodeId, max_iter: Option<usize>, ) -> Result<(), BetweennessCentralityError>

Source

pub fn iteration( &mut self, source: NodeId, src: NodeId, dst: NodeId, src_distance: f64, dst_distance: f64, scores: &mut BetweennessScores, )

Source

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>

Source

pub fn iteration_1( &mut self, source: NodeId, src: NodeId, dst: NodeId, src_distance: f64, dst_distance: f64, scores: &mut BetweennessScores, ) -> Result<(), BetweennessCentralityError>

Source

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<GH> Default for MinimumUnionCycle<GH>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<GH> ExtendWith<MinimumUnionCycle<GH>> for MinimumUnionCycle<GH>

Source§

fn extend_with( &mut self, other: &MinimumUnionCycle<GH>, ) -> Result<(), Self::Error>

muc1 = muc1 U muc2

  1. copy the graph of muc2 into muc1

  2. for each bridge edge, if the other end becomes in the graph, add the edge

Source§

type Error = BetweennessCentralityError

Source§

impl<GH> GetEdges for MinimumUnionCycle<GH>

Source§

fn edges(&self) -> &Edges

Source§

impl<GH> GetPrintNodes for MinimumUnionCycle<GH>

Source§

impl<GH> HasMapForNode for MinimumUnionCycle<GH>

Source§

impl<GH> InsertEdge for MinimumUnionCycle<GH>

Source§

impl<GH> InsertNode for MinimumUnionCycle<GH>

Source§

fn insert_node(&mut self, n: NodeId)

Source§

impl<GH> IsValid for MinimumUnionCycle<GH>

Source§

fn is_valid(&self) -> bool

Source§

impl<GH> MappedNodes for MinimumUnionCycle<GH>

Source§

impl<GH> Named for MinimumUnionCycle<GH>

Source§

fn name(&self) -> Cow<'_, str>

Returns the name associated with self. We use Cow to allow both owned and borrowed strings.
Source§

impl<GH> NumEdges for MinimumUnionCycle<GH>

Source§

impl<GH> NumNodes for MinimumUnionCycle<GH>

Source§

impl<GH> SetPrintNodes for MinimumUnionCycle<GH>

Auto Trait Implementations§

§

impl<GH> !Freeze for MinimumUnionCycle<GH>

§

impl<GH> RefUnwindSafe for MinimumUnionCycle<GH>
where GH: RefUnwindSafe,

§

impl<GH> Send for MinimumUnionCycle<GH>
where GH: Send + Sync,

§

impl<GH> Sync for MinimumUnionCycle<GH>
where GH: Sync + Send,

§

impl<GH> Unpin for MinimumUnionCycle<GH>
where GH: Unpin,

§

impl<GH> UnwindSafe for MinimumUnionCycle<GH>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PoisonMessage for T
where T: Debug,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> GraphHashMucInterface for T