jcommon.graph
Class StringGraph

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

public class StringGraph
extends ObjectGraph<String,String>

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

See Also:
DirectedAcyclicGraph

Field Summary
 
Fields inherited from interface jcommon.graph.IGraph
EMPTY_VERTICES
 
Method Summary
 StringGraph addEdge(String from, String to)
           
 StringGraph addVertex(String value)
           
static StringGraph buildFromStrings(String... vertices)
           
 StringGraph copyAsStringGraph()
           
static StringGraph createForStrings()
           
 StringGraph removeEdge(String from, String to)
           
 StringGraph removeVertex(String value)
           
 
Methods inherited from class jcommon.graph.ObjectGraph
buildFromObjects, copyAsObjectGraph, createForObjects
 
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

copyAsStringGraph

public StringGraph copyAsStringGraph()
See Also:
DirectedAcyclicGraph.copy()

buildFromStrings

public static StringGraph buildFromStrings(String... vertices)
See Also:
DirectedAcyclicGraph.build(IVertex[])

createForStrings

public static StringGraph createForStrings()
See Also:
DirectedAcyclicGraph.create()

addVertex

public StringGraph addVertex(String value)
Overrides:
addVertex in class ObjectGraph<String,String>
See Also:
DirectedAcyclicGraph.addVertex(IVertex)

removeVertex

public StringGraph removeVertex(String value)
Overrides:
removeVertex in class ObjectGraph<String,String>
See Also:
DirectedAcyclicGraph.removeVertex(IVertex)

addEdge

public StringGraph addEdge(String from,
                           String to)
Overrides:
addEdge in class ObjectGraph<String,String>
See Also:
DirectedAcyclicGraph.addEdge(IVertex, IVertex)

removeEdge

public StringGraph removeEdge(String from,
                              String to)
Overrides:
removeEdge in class ObjectGraph<String,String>
See Also:
DirectedAcyclicGraph.removeEdge(IVertex, IVertex)


Copyright © 2012-2013. All Rights Reserved.