Class TermEdge<TVertex>
The default ITermEdge<TVertex> implementation (directed edge).
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
[Serializable]
public class TermEdge<TVertex> : ITermEdge<TVertex>, IEdge<TVertex>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
Constructors
| Improve this Doc View SourceTermEdge(TVertex, TVertex)
Initializes a new instance of the TermEdge<TVertex> class using source/target vertices and zero terminals.
Declaration
public TermEdge(TVertex source, TVertex target)
Parameters
Type | Name | Description |
---|---|---|
TVertex | source | The source vertex. |
TVertex | target | The target vertex. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
TermEdge(TVertex, TVertex, Int32, Int32)
Initializes a new instance of the TermEdge<TVertex> class using source/target vertices and source/target terminals.
Declaration
public TermEdge(TVertex source, TVertex target, int sourceTerminal, int targetTerminal)
Parameters
Type | Name | Description |
---|---|---|
TVertex | source | The source vertex. |
TVertex | target | The target vertex. |
System.Int32 | sourceTerminal | The source terminal. |
System.Int32 | targetTerminal | The target terminal. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
System.ArgumentException |
|
System.ArgumentException |
|
Properties
| Improve this Doc View SourceSource
Gets the source vertex.
Declaration
public TVertex Source { get; }
Property Value
Type | Description |
---|---|
TVertex |
SourceTerminal
Index of terminal on source vertex to which this edge is attached.
Declaration
public int SourceTerminal { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Target
Gets the target vertex.
Declaration
public TVertex Target { get; }
Property Value
Type | Description |
---|---|
TVertex |
TargetTerminal
Index of terminal on target vertex to which this edge is attached.
Declaration
public int TargetTerminal { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()