public interface Vertex extends Element
| Modifier and Type | Method and Description |
|---|---|
Edge |
addEdge(String label,
Vertex inVertex)
Add a new outgoing edge from this vertex to the parameter vertex with provided edge label.
|
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.
|
getId, getProperty, getPropertyKeys, remove, removeProperty, setPropertyIterable<Edge> getEdges(Direction direction, String... labels)
direction - the direction of the edges to retrievelabels - the labels of the edges to retrieveIterable<Vertex> getVertices(Direction direction, String... labels)
direction - the direction of the edges of the adjacent verticeslabels - the labels of the edges of the adjacent verticesVertexQuery query()
Copyright © 2010-2014. All Rights Reserved.