pub struct LabelStats<NI, Label> {
pub max_degree: NI,
pub label_count: usize,
pub max_label: Label,
pub max_label_frequency: usize,
pub label_frequency: FxHashMap<Label, usize>,
}Available on crate feature
dotgraph only.Fields§
§max_degree: NI§label_count: usize§max_label: Label§max_label_frequency: usize§label_frequency: FxHashMap<Label, usize>Implementations§
Source§impl<NI, Label> LabelStats<NI, Label>
impl<NI, Label> LabelStats<NI, Label>
pub fn from_graph<G>(graph: &G) -> Selfwhere
G: Graph<NI> + UndirectedNeighbors<NI> + UndirectedDegrees<NI> + NodeValues<NI, Label> + Send + Sync,
Trait Implementations§
Source§impl<NI, Label, G> From<&G> for LabelStats<NI, Label>where
NI: Idx,
Label: Idx + Hash,
G: Graph<NI> + UndirectedNeighbors<NI> + UndirectedDegrees<NI> + NodeValues<NI, Label> + Send + Sync,
impl<NI, Label, G> From<&G> for LabelStats<NI, Label>where
NI: Idx,
Label: Idx + Hash,
G: Graph<NI> + UndirectedNeighbors<NI> + UndirectedDegrees<NI> + NodeValues<NI, Label> + Send + Sync,
Auto Trait Implementations§
impl<NI, Label> Freeze for LabelStats<NI, Label>
impl<NI, Label> RefUnwindSafe for LabelStats<NI, Label>where
NI: RefUnwindSafe,
Label: RefUnwindSafe,
impl<NI, Label> Send for LabelStats<NI, Label>
impl<NI, Label> Sync for LabelStats<NI, Label>
impl<NI, Label> Unpin for LabelStats<NI, Label>
impl<NI, Label> UnwindSafe for LabelStats<NI, Label>where
NI: UnwindSafe,
Label: UnwindSafe,
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> 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 more