pub struct IndeterminateEdge {
pub from: usize,
pub goto: usize,
}
Expand description
DynamicEdge represents an bidirectional edge between two nodes.
Also known as an arc.
§Examples
use graph_theory::GraphEngine;
Fields§
§from: usize
The index of the node that the edge is coming from.
goto: usize
The index of the node that the edge is going to.
Implementations§
Source§impl IndeterminateEdge
impl IndeterminateEdge
pub const fn new(from: usize, goto: usize) -> IndeterminateEdge
Trait Implementations§
Source§impl Clone for IndeterminateEdge
impl Clone for IndeterminateEdge
Source§fn clone(&self) -> IndeterminateEdge
fn clone(&self) -> IndeterminateEdge
Returns a copy 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 moreSource§impl Debug for IndeterminateEdge
impl Debug for IndeterminateEdge
Source§impl Display for IndeterminateEdge
impl Display for IndeterminateEdge
Source§impl Edge for IndeterminateEdge
impl Edge for IndeterminateEdge
Source§fn direction(&self) -> EdgeDirection
fn direction(&self) -> EdgeDirection
Whether the edge is bidirectional Read more
Source§fn delta_index(&self) -> usize
fn delta_index(&self) -> usize
The smaller of the two indices. Read more
Source§impl PartialEq for IndeterminateEdge
impl PartialEq for IndeterminateEdge
impl Copy for IndeterminateEdge
impl Eq for IndeterminateEdge
impl StructuralPartialEq for IndeterminateEdge
Auto Trait Implementations§
impl Freeze for IndeterminateEdge
impl RefUnwindSafe for IndeterminateEdge
impl Send for IndeterminateEdge
impl Sync for IndeterminateEdge
impl Unpin for IndeterminateEdge
impl UnwindSafe for IndeterminateEdge
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