Click or drag to resize

EdgeType Class

All edges have a type that is identified as a EdgeType. Each EdgeType have a name, can be persisted and tracks all edges of its type. The edge type also knows about properties used by its type.
Inheritance Hierarchy

Namespace:  VelocityGraph
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: (11.1)
public class EdgeType : OptimizedPersistable, IComparable<EdgeType>, 

The EdgeType type exposes the following members.

Public methodEdgeType
Creates a new edge type.
Public propertyDirected
Is Directed if edge type is not birectionalal
Public propertyHeadType
Gets the Head VertexType of the edge (might not be set)
Public propertyMyGraph
Graph for which this EdgeType belongs to
Public propertySubTypes
Sub types of this EdgeType
Public propertyTailType
Gets the Tail VertexType of the edge (might not be set)
Public propertyTypeId
Gets the id of the edge type
Public propertyTypeName
Gets the name of the this edge type
Public propertyUnrestricted
Is this edge type restricted to a certain head and tail vertex type?
Public methodStatic memberCompare
Compares two edge types by id
Public methodCompareTo
Compares two EdgeType objects by id
Public methodCountEdges
Get a count of existing edges of this type
Public methodEquals
Compares two edge types by id
Public methodFindProperty
Gets the property type given a property type name
Public methodGetEdge(Int32, Boolean, Boolean)
Gets an edge given an edge id. Throws if no such edge exist.
Public methodGetEdge(Int32, Vertex, Vertex)
Get an edge for a given id
Public methodGetEdges
Enumerates all edges of this type
Public methodGetHashCode
Get a hash code for an edge tyepe based on type id
Public methodGetPropertyKeys
Return all the keys associated with the edge type.
Public methodGetPropertyTypes
Return all the property types associated with edge type.
Public methodGetPropertyValue
Gets a property value given an edge id and a property type
Public methodNewEdge
Create an edge between tail and head vertex
Public methodNewEdgeX
Not yet implemented
Public methodNewProperty
Creates a new Property.
Public methodRemove
Removes this EdgeType from a graph. An exception is thrown if the EdgeType is in use.
Public methodRemoveEdge
Removing an edge from this edge type
Public methodSetPropertyValue(EdgeType, Int32, PropertyType, IComparable)
Sets an edge property given an edge id, property type and a value
Public methodSetPropertyValue(VertexType, Int32, PropertyType, IComparable)
Public methodToString
Displays class name plus object id
(Overrides OptimizedPersistableToString.)
Public methodUnpersist
Removes an object from the persistent store and makes the object a transient object. It does not automatically make referenced objects unpersisted. Best way to do so is to override this virtual function in your own classes.
(Overrides OptimizedPersistableUnpersist(SessionBase).)
Extension Methods
Public Extension MethodToStringDetails(SessionBase, Boolean)Overloaded.
Object details as a string
(Defined by Utilities.)
Public Extension MethodToStringDetails(Schema, TypeVersion, Boolean)Overloaded.
Currently only used by Database Manager
(Defined by Utilities.)
See Also