pub struct GraphEdge { /* private fields */ }Expand description
One directed relation between two graph nodes.
Implementations§
Source§impl GraphEdge
impl GraphEdge
Sourcepub fn id(&self) -> GraphEdgeId
pub fn id(&self) -> GraphEdgeId
This edge’s dense identity, equal to its position in the graph.
Sourcepub fn source(&self) -> GraphNodeId
pub fn source(&self) -> GraphNodeId
The node the relation starts at.
Sourcepub fn target(&self) -> GraphNodeId
pub fn target(&self) -> GraphNodeId
The node the relation ends at.
Sourcepub fn kind(&self) -> GraphEdgeKind
pub fn kind(&self) -> GraphEdgeKind
What relation this edge states.
Sourcepub fn certainty(&self) -> GraphCertainty
pub fn certainty(&self) -> GraphCertainty
How much this relation is known.
Sourcepub fn origin(&self) -> &GraphEdgeOrigin
pub fn origin(&self) -> &GraphEdgeOrigin
Why this edge exists.
Trait Implementations§
impl Eq for GraphEdge
impl StructuralPartialEq for GraphEdge
Auto Trait Implementations§
impl Freeze for GraphEdge
impl RefUnwindSafe for GraphEdge
impl Send for GraphEdge
impl Sync for GraphEdge
impl Unpin for GraphEdge
impl UnsafeUnpin for GraphEdge
impl UnwindSafe for GraphEdge
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