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

pub struct BaseEdge<V, W> where
    V: Vertex,
    W: Weight
{ 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: Vertex, W: Weight> BaseEdge<V, W>
[src]

[src]

Creates a new edge

[src]

Returns a copy of the vertex the edge starts in.

[src]

Returns a copy of the vertex the edge ends in.

[src]

Returns a copy of the weight of the edge.

Trait Implementations

impl<V: Copy, W: Copy> Copy for BaseEdge<V, W> where
    V: Vertex,
    W: Weight
[src]

impl<V: Clone, W: Clone> Clone for BaseEdge<V, W> where
    V: Vertex,
    W: Weight
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<V: Debug, W: Debug> Debug for BaseEdge<V, W> where
    V: Vertex,
    W: Weight
[src]

[src]

Formats the value using the given formatter. Read more

impl<V: PartialEq, W: PartialEq> PartialEq for BaseEdge<V, W> where
    V: Vertex,
    W: Weight
[src]

[src]

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

[src]

This method tests for !=.

impl<V: Eq, W: Eq> Eq for BaseEdge<V, W> where
    V: Vertex,
    W: Weight
[src]

Auto Trait Implementations

impl<V, W> Send for BaseEdge<V, W> where
    V: Send,
    W: Send

impl<V, W> Sync for BaseEdge<V, W> where
    V: Sync,
    W: Sync