Class EquatableTermEdge<TVertex>
An ITermEdge<TVertex> implementation that supports equality (directed edge).
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
[Serializable]
public class EquatableTermEdge<TVertex> : TermEdge<TVertex>, ITermEdge<TVertex>, IEdge<TVertex>, IEquatable<EquatableTermEdge<TVertex>>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
Constructors
| Improve this Doc View SourceEquatableTermEdge(TVertex, TVertex)
Initializes a new instance of the EquatableTermEdge<TVertex> class using source/target vertices and zero terminals.
Declaration
public EquatableTermEdge(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 |
|
EquatableTermEdge(TVertex, TVertex, Int32, Int32)
Initializes a new instance of the EquatableTermEdge<TVertex> class using source/target vertices and source/target terminals.
Declaration
public EquatableTermEdge(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 |
|
Methods
| Improve this Doc View SourceEquals(EquatableTermEdge<TVertex>)
Declaration
public virtual bool Equals(EquatableTermEdge<TVertex> other)
Parameters
Type | Name | Description |
---|---|---|
EquatableTermEdge<TVertex> | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>