| Modifier and Type | Method and Description |
|---|---|
Vertex |
Graph.addVertex(Object id)
Create a new vertex, add it to the graph, and return the newly created vertex.
|
Vertex |
Edge.getVertex(Direction direction)
Return the tail/out or head/in vertex.
|
Vertex |
Graph.getVertex(Object id)
Return the vertex referenced by the provided object identifier.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vertex> |
Graph.getVertices()
Return an iterable to all the vertices in the graph.
|
Iterable<Vertex> |
Vertex.getVertices(Direction direction,
String... labels)
Return the vertices adjacent to the vertex according to the provided direction and edge labels.
|
Iterable<Vertex> |
Graph.getVertices(String key,
Object value)
Return an iterable to all the vertices in the graph that have a particular key/value property.
|
Iterable<Vertex> |
Query.vertices()
Execute the query and return the vertices on the other end of the matching edges.
|
| Modifier and Type | Method and Description |
|---|---|
Edge |
Graph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label)
Add an edge to the graph.
|
Edge |
Vertex.addEdge(String label,
Vertex inVertex)
Add a new outgoing edge from this vertex to the parameter vertex with provided edge label.
|
void |
Graph.removeVertex(Vertex vertex)
Remove the provided vertex from the graph.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Vertex> |
TinkerGraph.vertices |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
TinkerGraph.addVertex(Object id) |
Vertex |
TinkerGraph.getVertex(Object id) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vertex> |
TinkerGraph.getVertices() |
Iterable<Vertex> |
TinkerGraph.getVertices(String key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
TinkerGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label) |
void |
TinkerGraph.removeVertex(Vertex vertex) |
| Modifier and Type | Field and Description |
|---|---|
protected Vertex |
DefaultVertexQuery.vertex |
| Modifier and Type | Method and Description |
|---|---|
static Vertex |
IndexableGraphHelper.addUniqueVertex(IndexableGraph graph,
Object id,
Index<Vertex> index,
String uniqueKey,
Object uniqueValue)
Add a vertex to a graph only if no other vertex in the provided Index is indexed by the property key/value pair.
|
static Vertex |
GraphHelper.addVertex(Graph graph,
Object id,
Object... properties)
Add a vertex to the graph with specified id and provided properties.
|
static Vertex |
EdgeHelper.getOther(Edge edge,
Vertex vertex) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Vertex> |
VerticesFromEdgesIterable.iterator() |
Iterable<Vertex> |
DefaultVertexQuery.vertices() |
Iterable<Vertex> |
DefaultGraphQuery.vertices() |
| Modifier and Type | Method and Description |
|---|---|
static Edge |
GraphHelper.addEdge(Graph graph,
Object id,
Vertex outVertex,
Vertex inVertex,
String label,
Object... properties)
Add an edge to the graph with specified id and provided properties.
|
static Vertex |
EdgeHelper.getOther(Edge edge,
Vertex vertex) |
static boolean |
VertexHelper.haveEqualEdges(Vertex a,
Vertex b,
boolean checkIdEquality)
Test whether the two vertices have equal edge sets
|
static boolean |
VertexHelper.haveEqualNeighborhood(Vertex a,
Vertex b,
boolean checkIdEquality)
Test whether the two vertices have equal properties and edge sets.
|
static String |
StringFactory.vertexString(Vertex vertex) |
| Modifier and Type | Method and Description |
|---|---|
static Vertex |
IndexableGraphHelper.addUniqueVertex(IndexableGraph graph,
Object id,
Index<Vertex> index,
String uniqueKey,
Object uniqueValue)
Add a vertex to a graph only if no other vertex in the provided Index is indexed by the property key/value pair.
|
| Constructor and Description |
|---|
DefaultVertexQuery(Vertex vertex) |
VerticesFromEdgesIterable(Vertex vertex,
Direction direction,
String... labels) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ElementFactory<V extends Vertex,E extends Edge>
A factory responsible for creating graph elements.
|
| Modifier and Type | Method and Description |
|---|---|
Vertex |
GraphElementFactory.createVertex(Object id) |
Vertex |
GraphSONUtility.vertexFromJson(InputStream json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static Vertex |
GraphSONUtility.vertexFromJson(InputStream json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
Vertex |
GraphSONUtility.vertexFromJson(com.fasterxml.jackson.databind.JsonNode json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static Vertex |
GraphSONUtility.vertexFromJson(com.fasterxml.jackson.databind.JsonNode json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
Vertex |
GraphSONUtility.vertexFromJson(org.codehaus.jettison.json.JSONObject json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static Vertex |
GraphSONUtility.vertexFromJson(org.codehaus.jettison.json.JSONObject json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
Vertex |
GraphSONUtility.vertexFromJson(String json)
Creates a vertex from GraphSON using settings supplied in the constructor.
|
static Vertex |
GraphSONUtility.vertexFromJson(String json,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Vertex from JSON.
|
| Modifier and Type | Method and Description |
|---|---|
Edge |
GraphElementFactory.createEdge(Object id,
Vertex out,
Vertex in,
String label) |
Edge |
GraphSONUtility.edgeFromJson(InputStream json,
Vertex out,
Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static Edge |
GraphSONUtility.edgeFromJson(InputStream json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
Edge |
GraphSONUtility.edgeFromJson(com.fasterxml.jackson.databind.JsonNode json,
Vertex out,
Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static Edge |
GraphSONUtility.edgeFromJson(com.fasterxml.jackson.databind.JsonNode json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
Edge |
GraphSONUtility.edgeFromJson(org.codehaus.jettison.json.JSONObject json,
Vertex out,
Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static Edge |
GraphSONUtility.edgeFromJson(org.codehaus.jettison.json.JSONObject json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
Edge |
GraphSONUtility.edgeFromJson(String json,
Vertex out,
Vertex in)
Creates an edge from GraphSON using settings supplied in the constructor.
|
static Edge |
GraphSONUtility.edgeFromJson(String json,
Vertex out,
Vertex in,
ElementFactory factory,
GraphSONMode mode,
Set<String> propertyKeys)
Reads an individual Edge from JSON.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Iterable<Vertex> |
WrapperVertexQuery.vertices() |
abstract Iterable<Vertex> |
WrappedGraphQuery.vertices() |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
BatchGraph.addVertex(Object id) |
Vertex |
BatchGraph.addVertex(Object id,
Object... properties) |
Vertex |
BatchGraph.getVertex(Object id)
If the input data are sorted, then out vertex will be repeated for several edges in a row.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vertex> |
BatchGraph.getVertices() |
Iterable<Vertex> |
BatchGraph.getVertices(String key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
BatchGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label) |
Edge |
BatchGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label,
Object... properties) |
protected Edge |
BatchGraph.addEdgeSupport(Vertex outVertex,
Vertex inVertex,
String label) |
void |
BatchGraph.removeVertex(Vertex vertex) |
| Modifier and Type | Method and Description |
|---|---|
void |
VertexCache.set(Vertex vertex,
Object externalId) |
void |
StringIDVertexCache.set(Vertex vertex,
Object externalId) |
void |
LongIDVertexCache.set(Vertex vertex,
Object externalId) |
| Modifier and Type | Class and Description |
|---|---|
class |
EventVertex
An vertex with a GraphChangedListener attached.
|
| Modifier and Type | Method and Description |
|---|---|
Vertex |
EventGraph.addVertex(Object id)
Raises a vertexAdded event.
|
Vertex |
EventVertex.getBaseVertex() |
Vertex |
EventEdge.getVertex(Direction direction) |
Vertex |
EventGraph.getVertex(Object id) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vertex> |
EventGraph.getVertices() |
Iterable<Vertex> |
EventVertex.getVertices(Direction direction,
String... labels) |
Iterable<Vertex> |
EventGraph.getVertices(String key,
Object value) |
Iterator<Vertex> |
EventVertexIterable.iterator() |
| Modifier and Type | Method and Description |
|---|---|
Edge |
EventGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label)
Raises an edgeAdded event.
|
Edge |
EventVertex.addEdge(String label,
Vertex vertex) |
protected void |
EventGraph.onVertexAdded(Vertex vertex) |
protected void |
EventElement.onVertexPropertyChanged(Vertex vertex,
String key,
Object oldValue,
Object newValue) |
protected void |
EventElement.onVertexPropertyRemoved(Vertex vertex,
String key,
Object removedValue) |
protected void |
EventGraph.onVertexRemoved(Vertex vertex,
Map<String,Object> props) |
void |
EventGraph.removeVertex(Vertex vertex)
Raises a vertexRemoved event.
|
| Constructor and Description |
|---|
EventVertex(Vertex rawVertex,
EventGraph eventGraph) |
| Constructor and Description |
|---|
EventVertexIterable(Iterable<Vertex> iterable,
EventGraph eventGraph) |
| Modifier and Type | Method and Description |
|---|---|
void |
StubGraphChangedListener.vertexAdded(Vertex vertex) |
void |
GraphChangedListener.vertexAdded(Vertex vertex)
Raised when a new Vertex is added.
|
void |
ConsoleGraphChangedListener.vertexAdded(Vertex vertex) |
void |
StubGraphChangedListener.vertexPropertyChanged(Vertex vertex,
String s,
Object o,
Object n) |
void |
GraphChangedListener.vertexPropertyChanged(Vertex vertex,
String key,
Object oldValue,
Object setValue)
Raised after the property of a vertex changed.
|
void |
ConsoleGraphChangedListener.vertexPropertyChanged(Vertex vertex,
String key,
Object oldValue,
Object newValue) |
void |
StubGraphChangedListener.vertexPropertyRemoved(Vertex vertex,
String s,
Object o) |
void |
GraphChangedListener.vertexPropertyRemoved(Vertex vertex,
String key,
Object removedValue)
Raised after a vertex property was removed.
|
void |
ConsoleGraphChangedListener.vertexPropertyRemoved(Vertex vertex,
String key,
Object removedValue) |
void |
StubGraphChangedListener.vertexRemoved(Vertex vertex,
Map<String,Object> props) |
void |
GraphChangedListener.vertexRemoved(Vertex vertex,
Map<String,Object> props)
Raised after a vertex was removed from the graph.
|
void |
ConsoleGraphChangedListener.vertexRemoved(Vertex vertex,
Map<String,Object> props) |
| Constructor and Description |
|---|
VertexAddedEvent(Vertex vertex) |
VertexPropertyChangedEvent(Vertex vertex,
String key,
Object oldValue,
Object newValue) |
VertexPropertyEvent(Vertex vertex,
String key,
Object oldValue,
Object newValue) |
VertexPropertyRemovedEvent(Vertex vertex,
String key,
Object removedValue) |
VertexRemovedEvent(Vertex vertex,
Map<String,Object> props) |
| Modifier and Type | Class and Description |
|---|---|
class |
IdVertex |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
IdGraph.addVertex(Object id) |
Vertex |
IdVertex.getBaseVertex() |
Vertex |
IdEdge.getVertex(Direction direction) |
Vertex |
IdGraph.getVertex(Object id) |
| Modifier and Type | Method and Description |
|---|---|
CloseableIterable<Vertex> |
IdVertexIndex.get(String key,
Object value) |
Class<Vertex> |
IdVertexIndex.getIndexClass() |
Iterable<Vertex> |
IdGraph.getVertices() |
Iterable<Vertex> |
IdVertex.getVertices(Direction direction,
String... labels) |
Iterable<Vertex> |
IdGraph.getVertices(String key,
Object value) |
CloseableIterable<Vertex> |
IdVertexIndex.query(String key,
Object query) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
IdGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label) |
Edge |
IdVertex.addEdge(String label,
Vertex vertex) |
void |
IdVertexIndex.put(String key,
Object value,
Vertex element) |
void |
IdVertexIndex.remove(String key,
Object value,
Vertex element) |
void |
IdGraph.removeVertex(Vertex vertex) |
| Constructor and Description |
|---|
IdVertex(Vertex baseVertex,
IdGraph idGraph) |
| Constructor and Description |
|---|
IdVertexIndex(Index<Vertex> baseIndex,
IdGraph idGraph) |
| Modifier and Type | Class and Description |
|---|---|
class |
PartitionVertex |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
PartitionGraph.addVertex(Object id) |
Vertex |
PartitionVertex.getBaseVertex() |
Vertex |
PartitionEdge.getVertex(Direction direction) |
Vertex |
PartitionGraph.getVertex(Object id) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vertex> |
PartitionGraph.getVertices() |
Iterable<Vertex> |
PartitionVertex.getVertices(Direction direction,
String... labels) |
Iterable<Vertex> |
PartitionGraph.getVertices(String key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
PartitionGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label) |
Edge |
PartitionVertex.addEdge(String label,
Vertex vertex) |
void |
PartitionGraph.removeVertex(Vertex vertex) |
| Constructor and Description |
|---|
PartitionVertex(Vertex baseVertex,
PartitionGraph graph) |
| Modifier and Type | Class and Description |
|---|---|
class |
ReadOnlyVertex |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
ReadOnlyGraph.addVertex(Object id) |
Vertex |
ReadOnlyEdge.getVertex(Direction direction) |
Vertex |
ReadOnlyGraph.getVertex(Object id) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vertex> |
ReadOnlyGraph.getVertices() |
Iterable<Vertex> |
ReadOnlyVertex.getVertices(Direction direction,
String... labels) |
Iterable<Vertex> |
ReadOnlyGraph.getVertices(String key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
ReadOnlyGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label) |
Edge |
ReadOnlyVertex.addEdge(String label,
Vertex vertex) |
void |
ReadOnlyGraph.removeVertex(Vertex vertex) |
| Constructor and Description |
|---|
ReadOnlyVertex(Vertex baseVertex) |
| Modifier and Type | Class and Description |
|---|---|
class |
WrappedVertex |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
WrappedGraph.addVertex(Object id) |
Vertex |
WrappedVertex.getBaseVertex() |
Vertex |
WrappedEdge.getVertex(Direction direction) |
Vertex |
WrappedGraph.getVertex(Object id) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Vertex> |
WrappedGraph.getVertices() |
Iterable<Vertex> |
WrappedVertex.getVertices(Direction direction,
String... labels) |
Iterable<Vertex> |
WrappedGraph.getVertices(String key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Edge |
WrappedGraph.addEdge(Object id,
Vertex outVertex,
Vertex inVertex,
String label) |
Edge |
WrappedVertex.addEdge(String label,
Vertex vertex) |
void |
WrappedGraph.removeVertex(Vertex vertex) |
| Constructor and Description |
|---|
WrappedVertex(Vertex baseVertex) |
Copyright © 2010-2014. All Rights Reserved.