pub struct LglGraph {
pub graph: Graph,
pub names: Vec<String>,
pub weights: Option<Vec<f64>>,
}Expand description
Result of reading an LGL file: the graph plus optional metadata.
Fields§
§graph: GraphThe parsed graph (always undirected).
names: Vec<String>Vertex names in index order.
weights: Option<Vec<f64>>Edge weights (one per edge, in edge order). None if no edge had
a weight specified. Missing weights default to 0.0.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LglGraph
impl !RefUnwindSafe for LglGraph
impl Send for LglGraph
impl !Sync for LglGraph
impl Unpin for LglGraph
impl UnsafeUnpin for LglGraph
impl UnwindSafe for LglGraph
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