Click or drag to resize

Vertex Class

A vertex maintains pointers to both a set of incoming and outgoing edges. The outgoing edges are those edges for which the vertex is the tail. The incoming edges are those edges for which the vertex is the head. Diagrammatically, ---inEdges---> vertex ---outEdges--->
Inheritance Hierarchy
SystemObject
  DictionaryElement
    VelocityGraphElement
      VelocityGraphVertex

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

The Vertex type exposes the following members.

Constructors
  NameDescription
Public methodVertex
Normally you should use GetVertex(Int32, Boolean, Boolean) but if you need a reference to a Vertex that has no yet been created, this constructor may be used (but know what you are doing!)
Top
Properties
  NameDescription
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 propertyVertexId
Gets the unique id of a vertex
Public propertyVertexType
Gets the vertex type of this Vertex
Top
Methods
  NameDescription
Public methodAddEdge(String, IVertex)
Add an edge from this Vertex to inVertex of edge type looked up from label, if edge type does not yet exist it is created.
Public methodAddEdge(EdgeType, Vertex)
Add an edge from this Vertex to inVertex of edge type.
Public methodAddEdge(Object, String, IVertex)
Add an edge from this Vertex to inVertex of edge type looked up from label, if edge type does not yet exist it is created.
Public methodEquals(Object)
Determines whether the specified Vertex is equal to the current one.
(Overrides ObjectEquals(Object).)
Public methodEquals(Vertex, Vertex)
Determines whether the specified objects are equal.
Public methodGetEdges(Direction, String)
Return the edges incident to the vertex according to the provided direction and edge labels.
Public methodGetEdges(EdgeType, Direction)
Selects all edges from or to this vertex and for the given edge type.
Public methodGetHashCode
Use id as hash code
(Overrides ElementGetHashCode.)
Public methodGetHashCode(Vertex)
Returns a hash code for the specified object.
Public methodGetNumberOfEdges(EdgeType, Direction)
Gets the number of edges from or to this vertex and for the given edge type.
Public methodGetNumberOfEdges(EdgeType, Vertex, Direction)
Gets the number of edges from or to this vertex for the given edge type and the given other Vertex.
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 vertex.
(Overrides DictionaryElement.GetPropertyKeys.)
Public methodGetVertices
Return the vertices adjacent to the vertex according to the provided direction and edge labels. This method does not remove duplicate vertices (i.e. those vertices that are connected by more than one edge).
Public methodQuery
Uses DefaultVertexQuery
Public methodRelatedVertices
Public methodRemove
Removes this Vertex from the Graph
(Overrides DictionaryElement.Remove.)
Public methodRemoveProperty
Un-assigns a key/value property from the vertex. The object value of the removed property is returned.
(Overrides DictionaryElement.RemoveProperty(String).)
Public methodSetProperty(String, Object)
Assign a key/value property to the vertex. If a value already exists for this key, then the previous key/value is overwritten.
(Overrides DictionaryElement.SetProperty(String, Object).)
Public methodSetProperty(PropertyType, IComparable)
Assign a key/value property to the vertex. If a value already exists for this key, then the previous key/value is overwritten.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodTraverse(Direction, ISetEdgeType)
Selects all neighbor Vertices from or to this vertex and for the given edge types.
Public methodTraverse(EdgeType, Direction)
Selects all neighbor Vertices from or to this vertex and for the given edge type.
Public methodTraverse(Int32, Boolean, Direction, Vertex, ISetEdgeType, ISetVertexType, ISetVertexType, ISetVertex, ISetVertex, ISetEdge, ISetEdge, ISetPropertyType, ISetPropertyType, ISetPropertyType, ISetPropertyType, FuncVertex, Boolean, FuncEdge, Boolean, FuncListEdge, Boolean)
Traverses graph from this Vertex to a target Vertex using Breadth-first search like in Dijkstra's algorithm
Top
See Also