|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBasicSubgraphFactory<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
Method Summary | |
---|---|
void |
addEdge(E edge)
Add an edge to the factory to be used to compose the subgraph. |
void |
addNode(N node)
Add a node to the factory that will be used to compose the subgraph. |
IBasicSubgraph<N,E> |
createInducedSubgraph()
Create an induced subgraph of the nodes and edges added to this factory. |
IBasicSubgraph<N,E> |
createSubgraph()
Create a subgraph composed of the nodes and edges added to this factory. |
java.util.Iterator<E> |
edgeIterator()
Iterate over the edges that have been added to the factory. |
IBasicGraph<N,E> |
getGraph()
The graph that this factory will create a subgraph for. |
java.util.Iterator<N> |
nodeIterator()
Iterate over the nodes that have been 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; |
Method Detail |
---|
IBasicGraph<N,E> getGraph()
void addNode(N node)
node
- The node to be added. Cannot be null.
java.lang.NullPointerException
- if node
is null.
java.lang.IllegalArgumentException
- if node
does not belong
the the same graph as the factory.int numNodes()
void addEdge(E edge)
edge
-
java.lang.NullPointerException
- if edge
is null.
java.lang.IllegalArgumentException
- if edge
does not belong
the the same graph as the factory.int numEdges()
java.util.Iterator<N> nodeIterator()
java.util.Iterator<E> edgeIterator()
IBasicSubgraph<N,E> createSubgraph()
IBasicSubgraph<N,E> createInducedSubgraph()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |