Struct graphene::core::BaseEdge [] [src]

pub struct BaseEdge<V, W> where
    V: Copy + Eq,
    W: Copy + Eq
{ pub source: V, pub sink: V, pub weight: W, }

Represents an edge between two vertices in a graph.

The edge is implicitly directed from the source to the sink with some weight weight.

Parameters:

  • V: The type of the vertices.
  • W: The type of the weight.

Fields

The vertex the edge starts in.

The vertex the edge ends in.

The weight of the edge.

Methods

impl<V: Copy + Eq, W: Copy + Eq> BaseEdge<V, W>
[src]

Creates a new edge

Returns a copy of the vertex the edge starts in.

Returns a copy of the vertex the edge ends in.

Returns a copy of the weight of the edge.

Trait Implementations

impl<V: Copy, W: Copy> Copy for BaseEdge<V, W> where
    V: Copy + Eq,
    W: Copy + Eq
[src]

impl<V: Clone, W: Clone> Clone for BaseEdge<V, W> where
    V: Copy + Eq,
    W: Copy + Eq
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<V: Debug, W: Debug> Debug for BaseEdge<V, W> where
    V: Copy + Eq,
    W: Copy + Eq
[src]

Formats the value using the given formatter.

impl<V: PartialEq, W: PartialEq> PartialEq for BaseEdge<V, W> where
    V: Copy + Eq,
    W: Copy + Eq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<V: Eq, W: Eq> Eq for BaseEdge<V, W> where
    V: Copy + Eq,
    W: Copy + Eq
[src]