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

DFS graph build with temporary Fish class

parent df4e54fd
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>sandbox</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
package search;
import java.util.Iterator;
public class Fish<Integer> implements Iterable<Integer> {
@Override
public Iterator<Integer> iterator() {
// TODO Auto-generated method stub
return null;
}
}
package search;
public class GraphBuild {
private final int V;
private int E;
private Fish<Integer>[] adj;
public GraphBuild(int V){
this.V = V;
this.E = 0;
adj = (Fish<Integer>[]) new Fish[V];
for(int v = 0; v < V; v++)
adj[v] = new Fish<Integer>();
}
/*public GraphBuild(In in){
}*/
}
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