helix.graph.model
Interface Graph

All Superinterfaces:
Registry
All Known Implementing Classes:
AbstractGraph, MemGraph

public interface Graph
extends Registry


Field Summary
 
Fields inherited from interface helix.graph.model.Registry
Color, Colors, Comment, IsDirect, Label, Orientation, Rank
 
Method Summary
 Edge addEdge(Vertex v1, Vertex v2)
           
 void addPhysicalVertex(Vertex v)
           
 Vertex addVertex()
           
 Edge assertEdge(Vertex v1, Vertex v2)
           
 void clear()
           
 void disconnectVertex(Vertex v)
           
 GSetFactory<Edge> edgeSetFactory()
           
 GraphFactory factory()
           
 Vertex findVertex(String registryKey, Object anyValue)
           
 Vertex findVertex(String registryKey, RegistryValue registryValue)
           
 GSet<Vertex> findVertices(String registryKey, Object anyValue)
           
 GSet<Vertex> findVertices(String registryKey, RegistryValue registryValue)
           
 Edge getEdge(Vertex v1, Vertex v2)
           
 boolean hasEdge(Vertex v1, Vertex v2)
           
 boolean hasVertex(Vertex v)
           
 int nbEdges()
           
 int nbVertices()
           
 Set<Graph> physicalSplit(Iterable<GSet<Vertex>> splits)
           
 void removeEdge(Edge e)
           
 void removeEdge(Vertex v1, Vertex v2)
           
 void removeVertex(Vertex v)
           
 GSetFactory<Vertex> vertexSetFactory()
           
 Iterable<Vertex> vertices()
           
 
Methods inherited from interface helix.graph.model.Registry
copy, get, has, keys, registry, remove, set, set, set, set, set, set
 

Method Detail

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)