Trait petgraph::visit::EdgeRef [] [src]

pub trait EdgeRef: Copy {
    type NodeId;
    type EdgeId;
    type Weight;
    fn source(&self) -> Self::NodeId;
    fn target(&self) -> Self::NodeId;
    fn weight(&self) -> &Self::Weight;
    fn id(&self) -> Self::EdgeId;
}

An edge reference.

Edge references are used by traits IntoEdges and IntoEdgeReferences.

Associated Types

Required Methods

The source node of the edge.

The target node of the edge.

A reference to the weight of the edge.

The edge’s identifier.

Implementors