ch.bfh.algo.graph
Class DefaultGraphFactory<E,V>
java.lang.Object
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>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultGraphFactory
public DefaultGraphFactory()
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>>