|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.compound.base.BaseSubCompoundGraphFactory
public abstract class BaseSubCompoundGraphFactory
Constructor Summary | |
---|---|
protected |
BaseSubCompoundGraphFactory(BaseSubCompoundGraphBuilder builder)
|
Method Summary | |
---|---|
void |
addEdge(BaseCompoundEdge edge)
Add an edge to the factory to be used to compose the subgraph. |
void |
addNode(BaseCompoundNode node)
Add a node to the factory that will be used to compose the subgraph. |
BaseSubCompoundGraph |
createInducedSubgraph()
Creates an induced subgraph that contains all incident edges between the nodes in this graph. |
BaseSubCompoundGraph |
createPermissiveInducedSubgraph()
|
BaseSubCompoundGraph |
createSubgraph()
Creates a subgraph that includes dangling edges and contains nodes from the compound graphs of of each subgraph. |
java.util.Iterator<BaseCompoundEdge> |
edgeIterator()
Get an iterator of the set of edges added to this factory. |
BaseCompoundGraph |
getGraph()
The graph that this factory will create a subgraph for. |
java.util.Iterator<BaseCompoundNode> |
nodeIterator()
Get an iterator for the set of nodes added to this factory. |
int |
numEdges()
The number of edges added to the factory. |
int |
numNodes()
Get the number of nodes added to the factory; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseSubCompoundGraphFactory(BaseSubCompoundGraphBuilder builder)
Method Detail |
---|
public final void addNode(BaseCompoundNode node)
IBasicSubgraphFactory
addNode
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
node
- The node to be added. Cannot be null.public final void addEdge(BaseCompoundEdge edge)
IBasicSubgraphFactory
addEdge
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
public java.util.Iterator<BaseCompoundNode> nodeIterator()
nodeIterator
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
CiNode
s.public int numNodes()
IBasicSubgraphFactory
numNodes
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
public java.util.Iterator<BaseCompoundEdge> edgeIterator()
edgeIterator
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
public int numEdges()
IBasicSubgraphFactory
numEdges
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
public BaseSubCompoundGraph createSubgraph()
createSubgraph
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
createSubgraph
in interface ISubCompoundGraphFactory<BaseCompoundNode,BaseCompoundEdge>
public BaseSubCompoundGraph createInducedSubgraph()
Postcondition:
retVal.isInducedSubgraph() == true
createInducedSubgraph
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
createInducedSubgraph
in interface ISubCompoundGraphFactory<BaseCompoundNode,BaseCompoundEdge>
public BaseSubCompoundGraph createPermissiveInducedSubgraph()
createPermissiveInducedSubgraph
in interface ISubCompoundGraphFactory<BaseCompoundNode,BaseCompoundEdge>
public final BaseCompoundGraph getGraph()
IBasicSubgraphFactory
getGraph
in interface IBasicSubgraphFactory<BaseCompoundNode,BaseCompoundEdge>
getGraph
in interface ISubCompoundGraphFactory<BaseCompoundNode,BaseCompoundEdge>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |