Class TaggedUndirectedEdge<TVertex, TTag>
The default implementation of an IUndirectedEdge<TVertex> that supports tagging.
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 TaggedUndirectedEdge<TVertex, TTag> : UndirectedEdge<TVertex>, IUndirectedEdge<TVertex>, IEdge<TVertex>, ITagged<TTag>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TTag | Tag type. |
Constructors
| Improve this Doc View SourceTaggedUndirectedEdge(TVertex, TVertex, TTag)
Initializes a new instance of the TaggedUndirectedEdge<TVertex, TTag> class.
Declaration
public TaggedUndirectedEdge(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 SourceTag
Gets or sets the tag.
Declaration
public TTag Tag { get; set; }
Property Value
Type | Description |
---|---|
TTag |
Methods
| Improve this Doc View SourceOnTagChanged(EventArgs)
Event invoker for TagChanged event.
Declaration
protected virtual void OnTagChanged(EventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | args | Event arguments. |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
QuikGraph.UndirectedEdge<TVertex>.ToString()
Events
| Improve this Doc View SourceTagChanged
Fired when the tag is changed.
Declaration
public event EventHandler TagChanged
Event Type
Type | Description |
---|---|
System.EventHandler |