uk.ed.inf.graph.compound
Interface ISubCompoundGraphFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>

All Superinterfaces:
IBasicSubgraphFactory<N,E>
All Known Implementing Classes:
BaseSubCompoundGraphFactory, SubCompoundGraphFactory

public interface ISubCompoundGraphFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
extends IBasicSubgraphFactory<N,E>


Method Summary
 ISubCompoundGraph<N,E> createInducedSubgraph()
          Create an induced subgraph of the nodes and edges added to this factory.
 ISubCompoundGraph<N,E> createPermissiveInducedSubgraph()
           
 ISubCompoundGraph<N,E> createSubgraph()
          Create a subgraph composed of the nodes and edges added to this factory.
 ICompoundGraph<N,E> getGraph()
          The graph that this factory will create a subgraph for.
 
Methods inherited from interface uk.ed.inf.graph.basic.IBasicSubgraphFactory
addEdge, addNode, edgeIterator, nodeIterator, numEdges, numNodes
 

Method Detail

getGraph

ICompoundGraph<N,E> getGraph()
Description copied from interface: IBasicSubgraphFactory
The graph that this factory will create a subgraph for.

Specified by:
getGraph in interface IBasicSubgraphFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
Returns:
the owning graph, which cannot be null.

createSubgraph

ISubCompoundGraph<N,E> createSubgraph()
Description copied from interface: IBasicSubgraphFactory
Create a subgraph composed of the nodes and edges added to this factory.

Specified by:
createSubgraph in interface IBasicSubgraphFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
Returns:
the new subgraph, which cannot be null, but can be empty if no nodes and edges were added.

createInducedSubgraph

ISubCompoundGraph<N,E> createInducedSubgraph()
Description copied from interface: IBasicSubgraphFactory
Create an induced subgraph of the nodes and edges added to this factory. This subgraph also contains edges that exist between all the nodes added to the factory, even if they are not explicitly added to the factory.

Specified by:
createInducedSubgraph in interface IBasicSubgraphFactory<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
Returns:
the new subgraph, which cannot be null, but can be empty if no nodes and edges held by the factory.

createPermissiveInducedSubgraph

ISubCompoundGraph<N,E> createPermissiveInducedSubgraph()