Type Alias spade::handles::FixedDirectedEdgeHandle
source · pub type FixedDirectedEdgeHandle = FixedHandleImpl<DirectedEdgeTag, InnerTag>;
Expand description
Fixed handle to a directed edge.
See also the handles module.
Aliased Type§
struct FixedDirectedEdgeHandle { /* private fields */ }
Implementations§
source§impl FixedDirectedEdgeHandle
impl FixedDirectedEdgeHandle
sourcepub fn rev(self) -> Self
pub fn rev(self) -> Self
Returns this edge with its direction reversed.
If this edge points from v0
to v1
, the returned edge would point from v1
to v0
.
Calling rev
twice will always return the original vertex.
sourcepub fn as_undirected(self) -> FixedUndirectedEdgeHandle
pub fn as_undirected(self) -> FixedUndirectedEdgeHandle
Converts this directed edge handle into an undirected edge handle.
See also the handles module for more information.