pub struct LayoutNodeMetadata { /* private fields */ }Expand description
What one node is, is inside, and measures as.
Implementations§
Source§impl LayoutNodeMetadata
impl LayoutNodeMetadata
Sourcepub fn node(self) -> GraphNodeId
pub fn node(self) -> GraphNodeId
The node this metadata describes.
Sourcepub fn containment_parent(self) -> Option<GraphNodeId>
pub fn containment_parent(self) -> Option<GraphNodeId>
The node containing it, if anything does.
Sourcepub fn partition(self) -> GraphNodeId
pub fn partition(self) -> GraphNodeId
The partition root that declares it.
Sourcepub fn incoming_degree(self) -> u32
pub fn incoming_degree(self) -> u32
How many selected edges arrive at it.
Sourcepub fn outgoing_degree(self) -> u32
pub fn outgoing_degree(self) -> u32
How many selected edges leave it.
Sourcepub fn raw_betweenness(self) -> f64
pub fn raw_betweenness(self) -> f64
The summed share of shortest routes passing through it.
Sourcepub fn normalized_betweenness(self) -> f64
pub fn normalized_betweenness(self) -> f64
That share against every ordered pair a graph this size can state.
Trait Implementations§
Source§impl Clone for LayoutNodeMetadata
impl Clone for LayoutNodeMetadata
impl Copy for LayoutNodeMetadata
Auto Trait Implementations§
impl Freeze for LayoutNodeMetadata
impl RefUnwindSafe for LayoutNodeMetadata
impl Send for LayoutNodeMetadata
impl Sync for LayoutNodeMetadata
impl Unpin for LayoutNodeMetadata
impl UnsafeUnpin for LayoutNodeMetadata
impl UnwindSafe for LayoutNodeMetadata
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