public class PartitionVertex extends PartitionElement implements Vertex
baseElement, graph| Modifier | Constructor and Description |
|---|---|
protected |
PartitionVertex(Vertex baseVertex,
PartitionGraph graph) |
| 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.
|
equals, getBaseElement, getId, getPartition, getProperty, getPropertyKeys, hashCode, remove, removeProperty, setPartition, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getProperty, getPropertyKeys, remove, removeProperty, setPropertyprotected PartitionVertex(Vertex baseVertex, PartitionGraph graph)
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 Edge addEdge(String label, Vertex vertex)
Vertexpublic Vertex getBaseVertex()
Copyright © 2010-2014. All Rights Reserved.