All Packages This Package Previous Next
java.lang.Object | +----GraphPack.Graph
The graph contains a list of all vertices, which is accessed
through getV(). Similarly, getE() returns the list of all
edges. To examine all vertices in the graph, use a loop:
for(Vertex v=\
The graph also contains a subset of vertices which are
highlighted. To access all highlighted vertices use:
for(Vertex v=\
note: to make it easy to move pasted graph - highlighted set
becomes the newly pasted nodes
Graph(UndoMan)
HEEmpty()
HEManyElt()
HESingleElt()
HEbetweenHV()
HVEmpty()
HVManyElt()
HVSingleElt()
Hall()
addToHE(Edge)
precond: e is not highlighted
addToHV(Vertex)
precond: v is not highlighted
adde(Edge)
adde(Vertex, Vertex)
addv(Vertex)
precond: v is not already in graph
addv(double, double)
addv(double, double, int)
clearAll()
clearHE()
clearHV()
connectToHV(Vertex)
convert()
copy()
copyHV()
cutHV()
delFromHE(Edge)
precond: e is highlighted
delFromHV(Vertex)
precond: v is highlighted
delHE()
delHV()
dele(Edge)
delv(Vertex)
eIn(Vertex, Vertex)
enumerateV()
findEdge(Edge)
findEdge(Vertex, Vertex)
findVertex(Vertex)
getAttachedEdges(Vertex)
getE()
getHE()
getHV()
getV()
isDir()
moveAllHV(double, double)
onAddE(Edge)
onAddToHE(Edge)
onAddToHV(Vertex)
onAddV(Vertex)
onDelE(Edge)
onDelFromHE(Edge)
onDelFromHV(Vertex)
onDelV(Vertex)
onTransV(Vertex, double, double)
pasteGraph(GraphInterface, double, double)
setUndoMan(UndoMan)
toString()
toStringH()
transv(Vertex, double, double)
vIn(Vertex)
Graph
public Graph(UndoMan _um)
setUndoMan
public void setUndoMan(UndoMan _um)
isDir
public boolean isDir()
protected void onAddV(Vertex v)
onDelV
protected void onDelV(Vertex v)
onAddE
protected void onAddE(Edge e)
onDelE
protected void onDelE(Edge e)
onAddToHV
protected void onAddToHV(Vertex v)
onDelFromHV
protected void onDelFromHV(Vertex v)
onAddToHE
protected void onAddToHE(Edge e)
onDelFromHE
protected void onDelFromHE(Edge e)
onTransV
protected void onTransV(Vertex v,
double dx,
double dy)
convert
public GraphInterface convert()
public void clearAll()
public void addv(Vertex v)
precond: v is not already in graph
public Vertex addv(double x,
double y)
public Vertex addv(double x,
double y,
int tempnum)
public Vertex findVertex(Vertex v)
public void delv(Vertex v)
public boolean vIn(Vertex v)
public Vertex getV()
public EdgeList getAttachedEdges(Vertex v)
public void transv(Vertex v,
double xtrans,
double ytrans)
public int enumerateV()
public void adde(Edge e)
public Edge adde(Vertex v1,
Vertex v2)
public Edge findEdge(Edge e)
public Edge findEdge(Vertex v1,
Vertex v2)
public void dele(Edge e)
public boolean eIn(Vertex v1,
Vertex v2)
public EdgeList getE()
public String toString()
public String toStringH()
HVEmpty
public boolean HVEmpty()
public boolean HEEmpty()
public boolean HVSingleElt()
public boolean HESingleElt()
public boolean HVManyElt()
public boolean HEManyElt()
public void Hall()
public Vertex getHV()
public EdgeList getHE()
public void addToHV(Vertex v)
precond: v is not highlighted
public void addToHE(Edge e)
precond: e is not highlighted
public void delFromHV(Vertex v)
precond: v is highlighted
public void delFromHE(Edge e)
precond: e is highlighted
public void delHV()
public void delHE()
public void clearHV()
public void clearHE()
public void HEbetweenHV()
public void connectToHV(Vertex v)
public void moveAllHV(double xtrans,
double ytrans)
public GraphInterface copy()
public GraphInterface copyHV()
public GraphInterface cutHV()
public void pasteGraph(GraphInterface g,
double x,
double y)
All Packages This Package Previous Next