Click or drag to resize

Vertex Methods

The Vertex type exposes the following members.

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 DictionaryElementGetProperty(String).)
Public methodGetProperty(PropertyType)
Gets the Value for the given Property id
Public methodGetPropertyKeys
Return all the keys associated with the vertex.
(Overrides DictionaryElementGetPropertyKeys.)
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
Public methodRelatedVertices
Public methodRemove
Removes this Vertex from the Graph
(Overrides DictionaryElementRemove.)
Public methodRemoveProperty
Un-assigns a key/value property from the vertex. The object value of the removed property is returned.
(Overrides DictionaryElementRemoveProperty(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 DictionaryElementSetProperty(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
Extension Methods
  NameDescription
Public Extension MethodAreEqual
A standard method for determining if two elements are equal. This method should be used by any Element.equals() implementation to ensure consistent behavior.
(Defined by ElementHelpers.)
Public Extension MethodCopyProperties
Copy the properties (key and value) from one element to another. The properties are preserved on the from element. ElementPropertiesRule that share the same key on the to element are overwritten.
(Defined by ElementHelpers.)
Public Extension MethodGetProperties
Get a clone of the properties of the provided element. In other words, a HashMap is created and filled with the key/values of the element's properties.
(Defined by ElementHelpers.)
Public Extension MethodHaveEqualEdges
Test whether the two vertices have equal edge sets
(Defined by VertexHelpers.)
Public Extension MethodHaveEqualIds
Simply tests if the element ids are equal().
(Defined by ElementHelpers.)
Public Extension MethodHaveEqualNeighborhood
Test whether the two vertices have equal properties and edge sets.
(Defined by VertexHelpers.)
Public Extension MethodHaveEqualProperties
Determines whether two elements have the same properties. To be true, both must have the same property keys and respective values must be equals().
(Defined by ElementHelpers.)
Public Extension MethodSetProperties(IDictionaryString, Object)Overloaded.
Set the properties of the provided element using the provided dictionary.
(Defined by ElementHelpers.)
Public Extension MethodSetProperties(Object)Overloaded.
Set the properties of the provided element using the provided key value pairs. The var args of Objects must be divisible by 2. All odd elements in the array must be a string key.
(Defined by ElementHelpers.)
Public Extension MethodValidateProperty
Determines whether the property key/value for the specified element can be legally set. This is typically used as a pre-condition check prior to setting a property. Throws ArgumentException whether the triple is legal and if not, a clear reason message is provided
(Defined by ElementHelpers.)
Public Extension MethodVertexString (Defined by StringFactory.)
Top
See Also