|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.impl.SubgraphFactory
public final class SubgraphFactory
Constructor Summary | |
---|---|
SubgraphFactory(Graph graph)
|
Method Summary | |
---|---|
void |
addEdge(Edge edge)
Add an edge to the factory to be used to compose the subgraph. |
void |
addNode(Node node)
Add a node to the factory that will be used to compose the subgraph. |
Subgraph |
createInducedSubgraph()
Create an induced subgraph of the nodes and edges added to this factory. |
Subgraph |
createSubgraph()
Creates a subgraph, that includes dangling edges. |
java.util.Iterator<Edge> |
edgeIterator()
Iterate over the edges that have been added to the factory. |
Graph |
getGraph()
The graph that this factory will create a subgraph for. |
java.util.Iterator<Node> |
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; |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
SubgraphFactory(Graph graph)
Method Detail |
---|
public void addNode(Node node)
IBasicSubgraphFactory
addNode
in interface IBasicSubgraphFactory<Node,Edge>
node
- The node to be added. Cannot be null.public void addEdge(Edge edge)
IBasicSubgraphFactory
addEdge
in interface IBasicSubgraphFactory<Node,Edge>
public Subgraph createSubgraph()
createSubgraph
in interface IBasicSubgraphFactory<Node,Edge>
public Subgraph createInducedSubgraph()
IBasicSubgraphFactory
createInducedSubgraph
in interface IBasicSubgraphFactory<Node,Edge>
public java.util.Iterator<Edge> edgeIterator()
IBasicSubgraphFactory
edgeIterator
in interface IBasicSubgraphFactory<Node,Edge>
public java.util.Iterator<Node> nodeIterator()
IBasicSubgraphFactory
nodeIterator
in interface IBasicSubgraphFactory<Node,Edge>
public Graph getGraph()
IBasicSubgraphFactory
getGraph
in interface IBasicSubgraphFactory<Node,Edge>
public int numEdges()
IBasicSubgraphFactory
numEdges
in interface IBasicSubgraphFactory<Node,Edge>
public int numNodes()
IBasicSubgraphFactory
numNodes
in interface IBasicSubgraphFactory<Node,Edge>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |