Class TaggedEdge<TVertex, TTag>
The default implementation of an IEdge<TVertex> that supports tagging (directed edge).
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 TaggedEdge<TVertex, TTag> : Edge<TVertex>, IEdge<TVertex>, ITagged<TTag>
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TTag | Tag type. |
Constructors
| Improve this Doc View SourceTaggedEdge(TVertex, TVertex, TTag)
Initializes a new instance of the TaggedEdge<TVertex, TTag> class.
Declaration
public TaggedEdge(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.Edge<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 |