uk.ed.inf.graph.colour
Interface IColouredEdgeFactory<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>

All Superinterfaces:
IBasicEdgeFactory<N,E>

public interface IColouredEdgeFactory<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
extends IBasicEdgeFactory<N,E>


Method Summary
 E createEdge()
          Create a new edge and add it to the graph.
 IColouredGraph<N,E> getGraph()
          Get the graph to which this factory acts upon.
 void setColourHandlerFactory(IEdgeColourHandlerFactory<N,E> handlerFactory)
           
 
Methods inherited from interface uk.ed.inf.graph.basic.IBasicEdgeFactory
canCreateEdge, getCurrentNodePair, isValidNodePair, setPair
 

Method Detail

getGraph

IColouredGraph<N,E> getGraph()
Get the graph to which this factory acts upon.

Specified by:
getGraph in interface IBasicEdgeFactory<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
Returns:
The owning graph, cannot be null.

setColourHandlerFactory

void setColourHandlerFactory(IEdgeColourHandlerFactory<N,E> handlerFactory)

createEdge

E createEdge()
Create a new edge and add it to the graph.

Specified by:
createEdge in interface IBasicEdgeFactory<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
Returns: