Click or drag to resize

VertexType Class

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

Namespace:  VelocityGraph
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax
[SerializableAttribute]
public class VertexType : OptimizedPersistable

The VertexType type exposes the following members.

Properties
  NameDescription
Public propertyEdgeTypes
All edge types connected with this vertex type.
Public propertyMyGraph
Graph for which this VertexType belongs to
Public propertySubTypes
Sub types of this VertexType
Public propertyTypeId
Get the unique id of the vertex type.
Public propertyTypeName
Gets the name of this VertexType
Top
Methods
  NameDescription
Public methodCountVertices
Count of vertcies
Public methodFindProperty
Gets the associated PropertyType given a property type name or null if such property type doesn't exist.
Public methodGetEdges(EdgeType, Direction)
Enumerates edges connected wih this vertex type
Public methodGetEdges(Vertex, Direction)
Get all edges found from a given Vertex
Public methodGetEdges(EdgeType, Vertex, Direction, Vertex)
Get all edges found between two vertices
Public methodGetNumberOfEdges(EdgeType, Direction)
Get the number of edges of a certain type that can be found and an edge direction
Public methodGetNumberOfEdges(EdgeType, Int32, Direction)
Get the number of edges of a certain type that can be found associated with a vertex id and an edge direction
Public methodGetNumberOfEdges(EdgeType, Int32, Int32, Direction)
Get the number of edges of a certain type that can be found associated with a vertex id, another vertex id at other end and an edge direction
Public methodGetPropertyKeys
Return all the keys associated with the vertex type.
Public methodGetPropertyTypes
Return all the property types associated with vertex type.
Public methodGetPropertyValue
Get the property value for a Vertex
Public methodGetTopNumberOfEdges
Get the top vertices with the most number of edges of the given edge type
Public methodGetVertex
Instantiates a Vertex if it exist
Public methodGetVerticeIds
Get existing Vertex ids for this type
Public methodGetVertices(Boolean)
Enumerates all vertices for the given type
Public methodGetVertices(EdgeType, Vertex, Direction)
Get an enumeration of existing vertices of this type found by following an edge type
Public methodNewProperty
Creates a new Property.
Public methodNewVertex
Creates a new Vertex
Public methodRemove
Removes this VertexType from a graph. An exception is thrown if the VertexType is in use.
Public methodRemoveVertex
Removes a vertex from this type and graph
Public methodSetPropertyValue
Sets a property value
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).)
Top
Extension Methods
  NameDescription
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.)
Top
See Also