ch.bfh.algo.graph
Class DefaultGraphFactory<E,V>

java.lang.Object
  extended by ch.bfh.algo.graph.DefaultGraphFactory<E,V>
All Implemented Interfaces:
ForestFactory<Vertex<E,V>>, GraphFactory<Edge<E,V>,Vertex<E,V>>

public class DefaultGraphFactory<E,V>
extends Object
implements GraphFactory<Edge<E,V>,Vertex<E,V>>


Constructor Summary
DefaultGraphFactory()
           
 
Method Summary
 Edge<E,V> castEdge(Position<?> edge)
           
 Vertex<E,V> castVertex(Position<?> vertex)
           
 Edge<E,V> createEdge()
           
 Vertex<E,V> createVertex()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGraphFactory

public DefaultGraphFactory()
Method Detail

createEdge

public Edge<E,V> createEdge()
Specified by:
createEdge in interface GraphFactory<Edge<E,V>,Vertex<E,V>>

createVertex

public Vertex<E,V> createVertex()
Specified by:
createVertex in interface ForestFactory<Vertex<E,V>>
Specified by:
createVertex in interface GraphFactory<Edge<E,V>,Vertex<E,V>>

castEdge

public Edge<E,V> castEdge(Position<?> edge)
Specified by:
castEdge in interface GraphFactory<Edge<E,V>,Vertex<E,V>>

castVertex

public Vertex<E,V> castVertex(Position<?> vertex)
Specified by:
castVertex in interface ForestFactory<Vertex<E,V>>
Specified by:
castVertex in interface GraphFactory<Edge<E,V>,Vertex<E,V>>