pub struct NcolGraph {
pub graph: Graph,
pub names: Vec<String>,
pub weights: Option<Vec<f64>>,
}Expand description
Result of reading an NCOL file: the graph plus optional metadata.
Fields§
§graph: GraphThe parsed graph (always undirected).
names: Vec<String>Vertex names in index order (name at position i is the name of
vertex i).
weights: Option<Vec<f64>>Edge weights (one per edge, in edge order). None if no edge had
a weight specified. If some edges have weights and some don’t, the
missing weights default to 0.0.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NcolGraph
impl !RefUnwindSafe for NcolGraph
impl Send for NcolGraph
impl !Sync for NcolGraph
impl Unpin for NcolGraph
impl UnsafeUnpin for NcolGraph
impl UnwindSafe for NcolGraph
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