Class TaggedEdge<TVertex, TTag>
public class TaggedEdge<TVertex, TTag> : ITaggedEdge<TVertex, TTag>, IEdge<TVertex>, ITagged<TTag>
Type Parameters
TVertexTTag
- Inheritance
-
TaggedEdge<TVertex, TTag>
- Implements
-
ITaggedEdge<TVertex, TTag>IEdge<TVertex>ITagged<TTag>
- Inherited Members
Constructors
TaggedEdge()
public TaggedEdge()
TaggedEdge(TVertex, TVertex, TTag)
public TaggedEdge(TVertex source, TVertex target, TTag tag)
Parameters
sourceTVertextargetTVertextagTTag
Properties
Source
public TVertex Source { get; set; }
Property Value
- TVertex
Tag
Gets or sets the tag.
public TTag Tag { get; set; }
Property Value
- TTag
Target
public TVertex Target { get; set; }
Property Value
- TVertex
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.