Class EquatableUndirectedEdge<TVertex>
The default struct based IUndirectedEdge<TVertex> implementation.
Implements
IUndirectedEdge<TVertex>
IEdge<TVertex>
System.IEquatable<EquatableUndirectedEdge<TVertex>>
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 EquatableUndirectedEdge<TVertex> : UndirectedEdge<TVertex>, IUndirectedEdge<TVertex>, IEdge<TVertex>, IEquatable<EquatableUndirectedEdge<TVertex>>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
Constructors
| Improve this Doc View SourceEquatableUndirectedEdge(TVertex, TVertex)
Initializes a new instance of the EquatableUndirectedEdge<TVertex> class.
Declaration
public EquatableUndirectedEdge(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(EquatableUndirectedEdge<TVertex>)
Declaration
public virtual bool Equals(EquatableUndirectedEdge<TVertex> other)
Parameters
Type | Name | Description |
---|---|---|
EquatableUndirectedEdge<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>