helix.graph.model.impl.memory
Class MemGraph

java.lang.Object
  extended by helix.graph.model.impl.AbstractRegistry
      extended by helix.graph.model.impl.DelegateRegistry
          extended by helix.graph.model.impl.AbstractGraph
              extended by helix.graph.model.impl.memory.MemGraph
All Implemented Interfaces:
Graph, Registry

public class MemGraph
extends AbstractGraph


Field Summary
 
Fields inherited from interface helix.graph.model.Registry
Color, Colors, Comment, IsDirect, Label, Orientation, Rank
 
Constructor Summary
MemGraph()
           
 
Method Summary
 Edge addEdge(Vertex v1, Vertex v2)
           
 Vertex addVertex()
           
 GSetFactory<Edge> edgeSetFactory()
           
 GraphFactory factory()
           
 Registry registry()
           
 void removeEdge(Vertex v1, Vertex v2)
           
 GSetFactory<Vertex> vertexSetFactory()
           
 
Methods inherited from class helix.graph.model.impl.AbstractGraph
addPhysicalVertex, assertEdge, clear, disconnectVertex, findVertex, findVertex, findVertices, findVertices, getEdge, hasEdge, hasVertex, nbEdges, nbVertices, physicalSplit, removeEdge, removeVertex, vertices
 
Methods inherited from class helix.graph.model.impl.DelegateRegistry
get, has, keys, remove, set
 
Methods inherited from class helix.graph.model.impl.AbstractRegistry
copy, set, set, set, set, set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface helix.graph.model.Registry
copy, get, has, keys, remove, set, set, set, set, set, set
 

Constructor Detail

MemGraph

public MemGraph()
Method Detail

factory

public GraphFactory factory()

vertexSetFactory

public GSetFactory<Vertex> vertexSetFactory()

edgeSetFactory

public GSetFactory<Edge> edgeSetFactory()

registry

public Registry registry()
Specified by:
registry in interface Registry
Specified by:
registry in class DelegateRegistry

addVertex

public Vertex addVertex()

addEdge

public Edge addEdge(Vertex v1,
                    Vertex v2)
             throws NoSuchVertexException,
                    SameVertexException,
                    DuplicateEdgeException
Throws:
NoSuchVertexException
SameVertexException
DuplicateEdgeException

removeEdge

public void removeEdge(Vertex v1,
                       Vertex v2)
                throws NoSuchVertexException
Throws:
NoSuchVertexException