Struct STaggedUndirectedEdge<TVertex, TTag>
The default implementation of an IUndirectedEdge<TVertex> that supports tagging (struct).
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 STaggedUndirectedEdge<TVertex, TTag> : IUndirectedEdge<TVertex>, IEdge<TVertex>, ITagged<TTag>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TTag | Tag type. |
Constructors
| Improve this Doc View SourceSTaggedUndirectedEdge(TVertex, TVertex, TTag)
Initializes a new instance of the STaggedUndirectedEdge<TVertex, TTag> struct.
Declaration
public STaggedUndirectedEdge(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 |
|
System.ArgumentException |
|
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 |