Class UndirectedEdge<TVertex>
The default IUndirectedEdge<TVertex> implementation.
Inheritance
System.Object
UndirectedEdge<TVertex>
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 UndirectedEdge<TVertex> : IUndirectedEdge<TVertex>, IEdge<TVertex>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
Constructors
| Improve this Doc View SourceUndirectedEdge(TVertex, TVertex)
Initializes a new instance of the UndirectedEdge<TVertex> class.
Declaration
public UndirectedEdge(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 |
|
System.ArgumentException |
|
Properties
| Improve this Doc View SourceSource
Gets the source vertex.
Declaration
public TVertex Source { get; }
Property Value
Type | Description |
---|---|
TVertex |
Target
Gets the target vertex.
Declaration
public TVertex Target { get; }
Property Value
Type | Description |
---|---|
TVertex |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()