|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.bbk.dcs.automed.graph.DirectedGraph
public class DirectedGraph
Class that abstracts a directed unlabelled graph.
Constructor Summary | |
---|---|
DirectedGraph()
|
Method Summary | |
---|---|
void |
addGraphNode(DirectedGraphNode n)
Adds a node in the graph. |
protected void |
addSubGraph(DirectedGraph graph)
Adds a subGraph in the set of subGraphs. |
boolean |
containsGraphNode(DirectedGraphNode n)
|
protected java.util.LinkedList |
getGraph()
|
protected DirectedGraphNode |
getNode(int i)
|
DirectedGraphNode |
getNode(java.lang.String name)
|
protected java.util.HashSet |
getSubGraphs()
|
java.util.HashSet |
graphToForest(Forest f)
This method first divides a given graph into subGraphs. |
protected void |
identifySubGraphs()
Discovers the subGraphs in the graph |
protected void |
printGraph(DirectedGraph n)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectedGraph()
Method Detail |
---|
public void addGraphNode(DirectedGraphNode n) throws GraphException
n
- the node to add
GraphException
public boolean containsGraphNode(DirectedGraphNode n)
n
- a DirectedGraphNode object
protected java.util.LinkedList getGraph()
public int size()
protected DirectedGraphNode getNode(int i)
public DirectedGraphNode getNode(java.lang.String name) throws NotFoundException
NotFoundException
public java.util.HashSet graphToForest(Forest f) throws GraphException
graph
- the graph
GraphException
protected java.util.HashSet getSubGraphs()
protected void addSubGraph(DirectedGraph graph)
graph
- the subGraph to addprotected void identifySubGraphs() throws GraphException
GraphException
protected void printGraph(DirectedGraph n)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |