pub struct Edge {
pub endpoints: (String, String),
pub weight: GNumber,
pub edge_type: EdgeType,
}
Expand description
Edge Structure
Edges have three fields
- endpoints (a,b) - this contains the info of the two vertices of the edge (A – B)
- weight - the weight of the edge. It’s of type GNumber
- edge_type - the type of the edge (Directed / Undirected)
Fields§
§endpoints: (String, String)
§weight: GNumber
§edge_type: EdgeType
Trait Implementations§
Source§impl Ord for Edge
impl Ord for Edge
Source§impl PartialOrd for Edge
impl PartialOrd for Edge
impl Eq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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