DirectedEdge Class |
Namespace: Algs4Net
public class DirectedEdge
The DirectedEdge type exposes the following members.
Name | Description | |
---|---|---|
![]() | DirectedEdge | Initializes a directed edge from vertex v to vertex w with
the given weight. |
Name | Description | |
---|---|---|
![]() | From |
Returns the tail vertex of the directed edge. |
![]() | To |
Returns the head vertex of the directed edge. |
![]() | Weight |
Returns the weight of the directed edge. |
Name | Description | |
---|---|---|
![]() ![]() | MainTest |
Demo test the DirectedEdge data type. |
![]() | ToString |
Returns a string representation of the directed edge. (Overrides ObjectToString.) |
For additional documentation, see Section 4.4 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
This class is a C# port from the original Java class DirectedEdge implementation by the respective authors.