Skip to content
Snippets Groups Projects
Commit a02dc30a authored by Lawrence Chung's avatar Lawrence Chung
Browse files

add method to Fish, edit GraphBuild

parent d1135393
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,11 @@ public class Fish<Integer> implements Iterable<Integer> {
return null;
}
public void add(int w) {
// TODO Auto-generated method stub
}
}
......@@ -17,4 +17,22 @@ public class GraphBuild {
/*public GraphBuild(In in){
}*/
public int V(){
return V;
}
public int E(){
return E;
}
public void addEdge(int v, int w){
adj[v].add(w);
adj[w].add(v);
E++;
}
public Iterable<Integer> adj(int V){
return adj[V];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment