jcommon.graph
Class ObjectGraph

java.lang.Object
  extended by jcommon.graph.DirectedAcyclicGraph<IVertex<Object>,Object>
      extended by jcommon.graph.ObjectGraph
All Implemented Interfaces:
Cloneable, IGraph<IVertex<Object>,Object>

public class ObjectGraph
extends DirectedAcyclicGraph<IVertex<Object>,Object>

Factory and implementation of a dependency graph that can topologically sort vertices that are Objects.

See Also:
DirectedAcyclicGraph

Field Summary
 
Fields inherited from interface jcommon.graph.IGraph
EMPTY_VERTICES
 
Method Summary
 ObjectGraph addEdge(Object from, Object to)
           
 ObjectGraph addVertex(Object vertex)
           
static ObjectGraph buildFromObjects(Object... vertices)
           
 ObjectGraph copyAsObjectGraph()
           
static ObjectGraph createForObjects()
           
 ObjectGraph removeEdge(Object from, Object to)
           
 ObjectGraph removeVertex(Object vertex)
           
 
Methods inherited from class jcommon.graph.DirectedAcyclicGraph
addEdge, addVertex, build, copy, create, getEdges, getVertices, removeEdge, removeVertex, sort, sort, sortAsync, sortAsync, sortAsync, sortAsync, sortAsync, sortAsync, sortAsync, sortAsync, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyAsObjectGraph

public ObjectGraph copyAsObjectGraph()
See Also:
DirectedAcyclicGraph.copy()

buildFromObjects

public static ObjectGraph buildFromObjects(Object... vertices)
See Also:
DirectedAcyclicGraph.build(jcommon.graph.IVertex[])

createForObjects

public static ObjectGraph createForObjects()
See Also:
DirectedAcyclicGraph.create()

addVertex

public ObjectGraph addVertex(Object vertex)
See Also:
DirectedAcyclicGraph.addVertex(jcommon.graph.IVertex)

removeVertex

public ObjectGraph removeVertex(Object vertex)
See Also:
DirectedAcyclicGraph.removeVertex(jcommon.graph.IVertex)

addEdge

public ObjectGraph addEdge(Object from,
                           Object to)
See Also:
DirectedAcyclicGraph.addEdge(jcommon.graph.IVertex, jcommon.graph.IVertex)

removeEdge

public ObjectGraph removeEdge(Object from,
                              Object to)
See Also:
DirectedAcyclicGraph.removeEdge(jcommon.graph.IVertex, jcommon.graph.IVertex)


Copyright © 2012-2013. All Rights Reserved.