pub struct PajekGraph {
pub graph: Graph,
pub labels: Option<Vec<String>>,
pub weights: Option<Vec<f64>>,
}Expand description
Result of reading a Pajek file.
Fields§
§graph: GraphThe parsed graph.
labels: Option<Vec<String>>Vertex labels (one per vertex, in index order). None if no
vertex had a label.
weights: Option<Vec<f64>>Edge weights (one per edge, in edge order). None if no edge
had a weight.
Trait Implementations§
Source§impl Clone for PajekGraph
impl Clone for PajekGraph
Source§fn clone(&self) -> PajekGraph
fn clone(&self) -> PajekGraph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for PajekGraph
impl !RefUnwindSafe for PajekGraph
impl Send for PajekGraph
impl !Sync for PajekGraph
impl Unpin for PajekGraph
impl UnsafeUnpin for PajekGraph
impl UnwindSafe for PajekGraph
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