helix.graph.model
Interface Graph
- All Superinterfaces:
- Registry
- All Known Implementing Classes:
- AbstractGraph, MemGraph
public interface Graph
- extends Registry
Methods inherited from interface helix.graph.model.Registry |
copy, get, has, keys, registry, remove, set, set, set, set, set, set |
nbVertices
int nbVertices()
nbEdges
int nbEdges()
vertices
Iterable<Vertex> vertices()
hasVertex
boolean hasVertex(Vertex v)
addVertex
Vertex addVertex()
removeVertex
void removeVertex(Vertex v)
throws NoSuchVertexException
- Throws:
NoSuchVertexException
disconnectVertex
void disconnectVertex(Vertex v)
throws NoSuchVertexException
- Throws:
NoSuchVertexException
findVertex
Vertex findVertex(String registryKey,
RegistryValue registryValue)
throws DuplicateValueException
- Throws:
DuplicateValueException
findVertex
Vertex findVertex(String registryKey,
Object anyValue)
throws DuplicateValueException
- Throws:
DuplicateValueException
findVertices
GSet<Vertex> findVertices(String registryKey,
RegistryValue registryValue)
findVertices
GSet<Vertex> findVertices(String registryKey,
Object anyValue)
hasEdge
boolean hasEdge(Vertex v1,
Vertex v2)
throws NoSuchVertexException
- Throws:
NoSuchVertexException
getEdge
Edge getEdge(Vertex v1,
Vertex v2)
throws NoSuchVertexException
- Throws:
NoSuchVertexException
addEdge
Edge addEdge(Vertex v1,
Vertex v2)
throws NoSuchVertexException,
SameVertexException,
DuplicateEdgeException
- Throws:
NoSuchVertexException
SameVertexException
DuplicateEdgeException
assertEdge
Edge assertEdge(Vertex v1,
Vertex v2)
throws NoSuchVertexException,
SameVertexException
- Throws:
NoSuchVertexException
SameVertexException
removeEdge
void removeEdge(Vertex v1,
Vertex v2)
throws NoSuchVertexException
- Throws:
NoSuchVertexException
removeEdge
void removeEdge(Edge e)
throws NoSuchVertexException
- Throws:
NoSuchVertexException
clear
void clear()
factory
GraphFactory factory()
vertexSetFactory
GSetFactory<Vertex> vertexSetFactory()
edgeSetFactory
GSetFactory<Edge> edgeSetFactory()
physicalSplit
Set<Graph> physicalSplit(Iterable<GSet<Vertex>> splits)
addPhysicalVertex
void addPhysicalVertex(Vertex v)