VelocityDB Class Library

## 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

Syntax

The VertexType type exposes the following members.

Properties

Name | Description | |
---|---|---|

EdgeTypes |
All edge types connected with this vertex type.
| |

MyGraph | Graph for which this VertexType belongs to
| |

SubTypes |
Sub types of this VertexType | |

TypeId |
Get the unique id of the vertex type.
| |

TypeName |
Gets the name of this VertexType |

Methods

Name | Description | |
---|---|---|

CountVertices |
Count of vertcies
| |

FindProperty |
Gets the associated PropertyType given a property type name or null if such property type doesn't exist.
| |

GetEdges(EdgeType, Direction) |
Enumerates edges connected wih this vertex type
| |

GetEdges(Vertex, Direction) |
Get all edges found from a given Vertex | |

GetEdges(EdgeType, Vertex, Direction, Vertex) |
Get all edges found between two vertices
| |

GetNumberOfEdges(EdgeType, Direction) |
Get the number of edges of a certain type that can be found and an edge direction
| |

GetNumberOfEdges(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
| |

GetNumberOfEdges(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
| |

GetPropertyKeys |
Return all the keys associated with the vertex type.
| |

GetPropertyTypes |
Return all the property types associated with vertex type.
| |

GetPropertyValue |
Get the property value for a Vertex | |

GetTopNumberOfEdges |
Get the top vertices with the most number of edges of the given edge type
| |

GetVertex |
Instantiates a Vertex if it exist
| |

GetVerticeIds |
Get existing Vertex ids for this type
| |

GetVertices(Boolean) |
Enumerates all vertices for the given type
| |

GetVertices(EdgeType, Vertex, Direction) |
Get an enumeration of existing vertices of this type found by following an edge type
| |

NewProperty |
Creates a new Property.
| |

NewVertex |
Creates a new Vertex
| |

Remove |
Removes this VertexType from a graph. An exception is thrown if the VertexType is in use.
| |

RemoveVertex |
Removes a vertex from this type and graph
| |

SetPropertyValue |
Sets a property value
| |

ToString |
Displays class name plus object id
(Overrides OptimizedPersistableToString.) | |

Unpersist |
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

Name | Description | |
---|---|---|

ToStringDetails(SessionBase, Boolean) | Overloaded.
Object details as a string
(Defined by Utilities.) | |

ToStringDetails(Schema, TypeVersion, Boolean) | Overloaded.
Currently only used by Database Manager
(Defined by Utilities.) |

See Also