C# Class Graph.Edge

Show file Open project: jlvermeulen/algorithms-and-data-structures Class Usage Examples

Public Properties

Property Type Description
Capacity uint
From uint
To uint
Weight int

Public Methods

Method Description
Edge ( uint from, uint to, int weight, uint capacity )

Initialises a new instance of the Edge class with the specified endpoints, weight and capacity.

Method Details

Edge() public method

Initialises a new instance of the Edge class with the specified endpoints, weight and capacity.
public Edge ( uint from, uint to, int weight, uint capacity )
from uint The ID of the first endpoint of the new edge.
to uint The ID of the second endpoint of the new edge.
weight int The weight of the new edge.
capacity uint The capacity of the new edge.

Property Details

Capacity public property

The capacity of the edge.
public uint Capacity
return uint

From public property

The ID of the first endpoint of the edge.
public uint From
return uint

To public property

The ID of the second endpoint of the edge.
public uint To
return uint

Weight public property

The weight of the edge.
public int Weight
return int