uk.ed.inf.graph.impl
Class NodeFactory

java.lang.Object
  extended by uk.ed.inf.graph.impl.NodeFactory
All Implemented Interfaces:
IBasicNodeFactory<Node,Edge>, IUndirectedNodeFactory<Node,Edge>

public final class NodeFactory
extends java.lang.Object
implements IUndirectedNodeFactory<Node,Edge>


Constructor Summary
NodeFactory(Graph graph)
           
 
Method Summary
 Node createNode()
           
 IBasicGraph<Node,Edge> getGraph()
          Get the graph to which this factory acts upon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactory

NodeFactory(Graph graph)
Method Detail

createNode

public Node createNode()
Specified by:
createNode in interface IBasicNodeFactory<Node,Edge>

getGraph

public IBasicGraph<Node,Edge> getGraph()
Description copied from interface: IBasicNodeFactory
Get the graph to which this factory acts upon.

Specified by:
getGraph in interface IBasicNodeFactory<Node,Edge>
Returns:
The owning graph, cannot be null.