public interface BackendGraph extends NamespaceAware
GraphProvider
.
Name is BackendGraph
as there is already a Graph
used in the UI.Modifier and Type | Method and Description |
---|---|
void |
addEdgeListener(EdgeListener listener) |
void |
addEdges(Edge... edges) |
void |
addVertexListener(VertexListener vertexListener) |
void |
addVertices(Vertex... vertices) |
void |
clearEdges() |
void |
clearVertices() |
Edge |
connectVertices(String edgeId,
VertexRef sourceVertextId,
VertexRef targetVertextId) |
boolean |
containsVertexId(String id)
Deprecated.
Use
containsVertexId(VertexRef, Criteria...) instead. |
boolean |
containsVertexId(VertexRef id,
Criteria... criteria) |
Edge |
getEdge(EdgeRef reference) |
Edge |
getEdge(String namespace,
String id) |
EdgeRef[] |
getEdgeIdsForVertex(VertexRef vertex) |
Map<VertexRef,Set<EdgeRef>> |
getEdgeIdsForVertices(VertexRef... vertices)
This function can be used for efficiency when you need the
EdgeRef
instances for a large number of vertices. |
List<Edge> |
getEdges(Collection<? extends EdgeRef> references)
Return an immutable list of all edges that match this set of references.
|
List<Edge> |
getEdges(Criteria... criteria)
Return an immutable list of edges that match the criteria.
|
int |
getEdgeTotalCount() |
Vertex |
getVertex(String namespace,
String id) |
Vertex |
getVertex(VertexRef reference,
Criteria... criteria) |
int |
getVertexTotalCount() |
List<Vertex> |
getVertices(Collection<? extends VertexRef> references,
Criteria... criteria) |
List<Vertex> |
getVertices(Criteria... criteria)
Return an immutable list of vertices that match the criteria.
|
void |
removeEdgeListener(EdgeListener listener) |
void |
removeEdges(EdgeRef... edges) |
void |
removeVertex(VertexRef... vertexId) |
void |
removeVertexListener(VertexListener vertexListener) |
void |
resetContainer() |
contributesTo, getNamespace
@Deprecated boolean containsVertexId(String id)
containsVertexId(VertexRef, Criteria...)
instead.List<Vertex> getVertices(Criteria... criteria)
List<Vertex> getVertices(Collection<? extends VertexRef> references, Criteria... criteria)
void addVertexListener(VertexListener vertexListener)
void removeVertexListener(VertexListener vertexListener)
void clearVertices()
int getVertexTotalCount()
void addVertices(Vertex... vertices)
void removeVertex(VertexRef... vertexId)
List<Edge> getEdges(Criteria... criteria)
List<Edge> getEdges(Collection<? extends EdgeRef> references)
void addEdgeListener(EdgeListener listener)
void removeEdgeListener(EdgeListener listener)
void clearEdges()
int getEdgeTotalCount()
Map<VertexRef,Set<EdgeRef>> getEdgeIdsForVertices(VertexRef... vertices)
EdgeRef
instances for a large number of vertices.void addEdges(Edge... edges)
void removeEdges(EdgeRef... edges)
Edge connectVertices(String edgeId, VertexRef sourceVertextId, VertexRef targetVertextId)
void resetContainer()
Copyright © 2021. All rights reserved.