Struct SReversedEdge<TVertex, TEdge>
The default struct based reversed IEdge<TVertex> implementation.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: QuikGraph
Assembly: QuikGraph.dll
Syntax
[Serializable]
public struct SReversedEdge<TVertex, TEdge> : IEdge<TVertex>, IEquatable<SReversedEdge<TVertex, TEdge>> where TEdge : IEdge<TVertex>
Type Parameters
| Name | Description |
|---|---|
| TVertex | Vertex type. |
| TEdge | Edge type. |
Constructors
| Improve this Doc View SourceSReversedEdge(TEdge)
Initializes a new instance of the SReversedEdge<TVertex, TEdge> struct.
Declaration
public SReversedEdge(TEdge originalEdge)
Parameters
| Type | Name | Description |
|---|---|---|
| TEdge | originalEdge | Original edge. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceOriginalEdge
Original edge.
Declaration
public readonly TEdge OriginalEdge { get; }
Property Value
| Type | Description |
|---|---|
| TEdge |
Source
Gets the source vertex.
Declaration
public readonly TVertex Source { get; }
Property Value
| Type | Description |
|---|---|
| TVertex |
Target
Gets the target vertex.
Declaration
public readonly TVertex Target { get; }
Property Value
| Type | Description |
|---|---|
| TVertex |
Methods
| Improve this Doc View SourceEquals(SReversedEdge<TVertex, TEdge>)
Declaration
public bool Equals(SReversedEdge<TVertex, TEdge> other)
Parameters
| Type | Name | Description |
|---|---|---|
| SReversedEdge<TVertex, TEdge> | 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.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.ValueType.ToString()
Implements
System.IEquatable<T>