pub struct DotGraph<NI, Label>{
pub labels: Vec<Label>,
pub edge_list: EdgeList<NI, ()>,
pub max_degree: NI,
pub max_label: Label,
pub label_frequency: FxHashMap<Label, usize>,
}Available on crate feature
dotgraph only.Fields§
§labels: Vec<Label>§edge_list: EdgeList<NI, ()>§max_degree: NI§max_label: Label§label_frequency: FxHashMap<Label, usize>Implementations§
Source§impl<NI, Label> DotGraph<NI, Label>
impl<NI, Label> DotGraph<NI, Label>
pub fn node_count(&self) -> NI
pub fn label_count(&self) -> usize
pub fn max_label_frequency(&self) -> usize
Trait Implementations§
Source§impl<NI, Label, R> TryFrom<LineReader<R>> for DotGraph<NI, Label>
impl<NI, Label, R> TryFrom<LineReader<R>> for DotGraph<NI, Label>
Auto Trait Implementations§
impl<NI, Label> Freeze for DotGraph<NI, Label>
impl<NI, Label> RefUnwindSafe for DotGraph<NI, Label>where
NI: RefUnwindSafe,
Label: RefUnwindSafe,
impl<NI, Label> Send for DotGraph<NI, Label>
impl<NI, Label> Sync for DotGraph<NI, Label>
impl<NI, Label> Unpin for DotGraph<NI, Label>
impl<NI, Label> UnsafeUnpin for DotGraph<NI, Label>where
NI: UnsafeUnpin,
Label: UnsafeUnpin,
impl<NI, Label> UnwindSafe for DotGraph<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