baseElement, idGraph, propertyBased| Modifier | Constructor and Description |
|---|---|
protected |
IdVertex(Vertex baseVertex,
IdGraph idGraph) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
addEdge(String label,
Vertex vertex)
Add a new outgoing edge from this vertex to the parameter vertex with provided edge label.
|
Vertex |
getBaseVertex() |
Iterable<Edge> |
getEdges(Direction direction,
String... labels)
Return the edges incident to the vertex according to the provided direction and edge labels.
|
Iterable<Vertex> |
getVertices(Direction direction,
String... labels)
Return the vertices adjacent to the vertex according to the provided direction and edge labels.
|
VertexQuery |
query()
Generate a query object that can be used to fine tune which edges/vertices are retrieved that are incident/adjacent to this vertex.
|
void |
setProperty(String key,
Object value)
Assign a key/value property to the element.
|
String |
toString() |
equals, getId, getProperty, getPropertyKeys, hashCode, remove, removePropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getProperty, getPropertyKeys, remove, removePropertypublic Vertex getBaseVertex()
public Iterable<Edge> getEdges(Direction direction, String... labels)
Vertexpublic Iterable<Vertex> getVertices(Direction direction, String... labels)
VertexgetVertices in interface Vertexdirection - the direction of the edges of the adjacent verticeslabels - the labels of the edges of the adjacent verticespublic VertexQuery query()
Vertexpublic void setProperty(String key, Object value)
ElementsetProperty in interface ElementsetProperty in class IdElementkey - the string key of the propertyvalue - the object value o the propertypublic Edge addEdge(String label, Vertex vertex)
VertexCopyright © 2010-2014. All Rights Reserved.