Class EquatableEdge<TVertex>
An IEdge<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 EquatableEdge<TVertex> : Edge<TVertex>, IEdge<TVertex>, IEquatable<EquatableEdge<TVertex>>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
Constructors
| Improve this Doc View SourceEquatableEdge(TVertex, TVertex)
Initializes a new instance of the EquatableEdge<TVertex> class.
Declaration
public EquatableEdge(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 |
|
Methods
| Improve this Doc View SourceEquals(EquatableEdge<TVertex>)
Declaration
public virtual bool Equals(EquatableEdge<TVertex> other)
Parameters
Type | Name | Description |
---|---|---|
EquatableEdge<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>