jcommon.graph
Class StringGraph

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

public class StringGraph
extends DirectedAcyclicGraph<StringVertex>

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 vertex)
           
static StringGraph buildFromStrings(String... vertices)
           
 StringGraph copyAsStringGraph()
           
static StringGraph createForStrings()
           
 StringGraph removeEdge(String from, String to)
           
 StringGraph removeVertex(String 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

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 vertex)
See Also:
DirectedAcyclicGraph.addVertex(IVertex)

removeVertex

public StringGraph removeVertex(String vertex)
See Also:
DirectedAcyclicGraph.removeVertex(IVertex)

addEdge

public StringGraph addEdge(String from,
                           String to)
See Also:
DirectedAcyclicGraph.addEdge(IVertex, IVertex)

removeEdge

public StringGraph removeEdge(String from,
                              String to)
See Also:
DirectedAcyclicGraph.removeEdge(IVertex, IVertex)


Copyright © 2012-2013. All Rights Reserved.