Struct STaggedEdge<TVertex, TTag>
The default implementation of an IEdge<TVertex> that supports tagging (struct) (directed edge).
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
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 STaggedEdge<TVertex, TTag> : IEdge<TVertex>, ITagged<TTag>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TTag | Tag type. |
Constructors
| Improve this Doc View SourceSTaggedEdge(TVertex, TVertex, TTag)
Initializes a new instance of the STaggedEdge<TVertex, TTag> struct.
Declaration
public STaggedEdge(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 SourceToString()
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 |