The following code is a small part of a class called GreedyGraph, which extends the class Graph.
public class GreedyGraph extends Graph {
private final boolean DEBUG=false;
private GreedyPriorityQueue q;
private int components;
// constructor
public GreedyGraph(String name) throws java.io.IOException {
process_header(name);
add_vertices();
add_edges();
}
My main class, ShortestPath, contains the following code:
public class ShortestPath extends GreedyGraph {
public ShortestPath(String name) throws IOException {
super(name);
}
Of course, there is a lot more to this project than just these lines of code. When I try to run it, the following error code occurs:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Implicit super constructor GreedyGraph() is undefined. Must explicitly invoke another constructor
Shouldn't this not be happening?