Struct SEquatableTaggedEdge<TVertex, TTag>
The default implementation of an IEdge<TVertex> that supports tagging (struct) (directed edge).
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 SEquatableTaggedEdge<TVertex, TTag> : IEdge<TVertex>, ITagged<TTag>, IEquatable<SEquatableTaggedEdge<TVertex, TTag>>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TTag | Tag type. |
Constructors
| Improve this Doc View SourceSEquatableTaggedEdge(TVertex, TVertex, TTag)
Initializes a new instance of the SEquatableTaggedEdge<TVertex, TTag> struct.
Declaration
public SEquatableTaggedEdge(TVertex source, TVertex target, TTag tag)
Parameters
Type | Name | Description |
---|---|---|
TVertex | source | The source vertex. |
TVertex | target | The target vertex. |
TTag | tag | Edge tag. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
Properties
| Improve this Doc View SourceSource
Gets the source vertex.
Declaration
public readonly TVertex Source { get; }
Property Value
Type | Description |
---|---|
TVertex |
Tag
Gets or sets the tag.
Declaration
public TTag Tag { get; set; }
Property Value
Type | Description |
---|---|
TTag |
Target
Gets the target vertex.
Declaration
public readonly TVertex Target { get; }
Property Value
Type | Description |
---|---|
TVertex |
Methods
| Improve this Doc View SourceEquals(SEquatableTaggedEdge<TVertex, TTag>)
Declaration
public bool Equals(SEquatableTaggedEdge<TVertex, TTag> other)
Parameters
Type | Name | Description |
---|---|---|
SEquatableTaggedEdge<TVertex, TTag> | 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()
Events
| Improve this Doc View SourceTagChanged
Fired when the tag is changed.
Declaration
public event EventHandler TagChanged
Event Type
Type | Description |
---|---|
System.EventHandler |
Implements
System.IEquatable<T>