Click or drag to resize

Edge Class

An Edge links two vertices. Along with its key/value properties, an edge has both a directionality and a label. The directionality determines which vertex is the tail vertex (out vertex) and which vertex is the head vertex (in vertex). The edge label determines the type of relationship that exists between the two vertices. Diagrammatically, outVertex ---label---> inVertex.
Inheritance Hierarchy
SystemObject
  DictionaryElement
    VelocityGraphElement
      VelocityGraphEdge

Namespace:  VelocityGraph
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: 8.2.1.0 (8.2.1)
Syntax
public class Edge : Element, IEdge, IElement, 
	IDictionary<string, Object>, ICollection<KeyValuePair<string, Object>>, 
	IEnumerable<KeyValuePair<string, Object>>, IEnumerable, 
	IDictionary, ICollection, IEqualityComparer<Edge>

The Edge type exposes the following members.

Properties
  NameDescription
Public propertyEdgeId
Gets the edge id
Public propertyEdgeType
Gets the edge type
Public propertyHead
Gets the head vertex
Public propertyId
An identifier that is unique to its inheriting class. All vertices of a graph must have unique identifiers. All edges of a graph must have unique identifiers.
(Overrides DictionaryElement.Id.)
Public propertyTail
Gets the tail vertex
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Edge is equal to the current one.
(Overrides ObjectEquals(Object).)
Public methodEquals(Edge, Edge)
Determines whether the specified objects are equal.
Public methodGetEdgePeer
Gets the other end for the given edge.
Public methodGetHashCode
Use id as hash code
(Overrides ElementGetHashCode.)
Public methodGetHashCode(Edge)
Returns a hash code for the specified object.
Public methodGetProperty(String)
Return the object value associated with the provided string key. If no value exists for that key, return null.
(Overrides DictionaryElement.GetProperty(String).)
Public methodGetProperty(PropertyType)
Gets the Value for the given Property id
Public methodGetPropertyKeys
Return all the keys associated with the element.
(Overrides DictionaryElement.GetPropertyKeys.)
Public methodRemove
Remove the edge from the graph.
(Overrides DictionaryElement.Remove.)
Public methodRemoveProperty
Un-assigns a key/value property from the edge. The object value of the removed property is returned.
(Overrides DictionaryElement.RemoveProperty(String).)
Public methodSetProperty(String, Object)
Assign a key/value property to the edge. If a value already exists for this key, then the previous key/value is overwritten.
(Overrides DictionaryElement.SetProperty(String, Object).)
Public methodSetProperty(PropertyType, IComparable)
Sets the value for a property
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
See Also