|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModifiableCompoundGraph<N extends ICompoundNode<N,? extends ICompoundEdge<N,?>>,E extends ICompoundEdge<N,E>>
Method Summary | |
---|---|
boolean |
canCopyHere(ISubCompoundGraph<? extends N,? extends E> subgraph)
Removes the nodes and edges defined in the subgraph from this graph. |
boolean |
canRemoveSubgraph(ISubCompoundGraph<? extends N,? extends E> subgraph)
Tests if subgraph removal will succeed. |
void |
copyHere(ISubCompoundGraph<? extends N,? extends E> subgraph)
Copies a subgraph into this graph. |
ICompoundEdgeFactory<N,E> |
edgeFactory()
Gets an edge factory that works out the LCA of two nodes making up the edge and assigns it to the appropriate compound graph. |
ISubCompoundGraph<N,E> |
getCopiedComponents()
Retrieves the nodes and edges created in this graph by the last copy operation. |
ICompoundNodeFactory<N,E> |
nodeFactory()
Gets the node factory to add new nodes to the root child graph of this compound graph. |
ISubCompoundGraphFactory<N,E> |
subgraphFactory()
Gets a subgraph factory used to create a subgraph of this graph. |
Method Detail |
---|
ICompoundNodeFactory<N,E> nodeFactory()
ICompoundEdgeFactory<N,E> edgeFactory()
ISubCompoundGraphFactory<N,E> subgraphFactory()
boolean canRemoveSubgraph(ISubCompoundGraph<? extends N,? extends E> subgraph)
subgraph
- the subgraph to be removed, which can be null.
boolean canCopyHere(ISubCompoundGraph<? extends N,? extends E> subgraph)
subgraph
- The subgraph to remove, cannot be null.subGraph
- the subgraph to test, can be null.
java.lang.IllegalArgumentException
- if canRemoveSubgraph(subgraph) == false
.
void removeSubgraph(ISubCompoundGraph extends N, ? extends E> subgraph);
/**
Tests whether the subGraph can be copied to this graph. To be true the subgraph must be an induced subgraph
that is a consistent of the super graph. It must also be not null.void copyHere(ISubCompoundGraph<? extends N,? extends E> subgraph)
subGraph
- the subgraph to copy
java.lang.IllegalArgumentException
- if canCopyHere(subGraph) == false
.ISubCompoundGraph<N,E> getCopiedComponents()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |