Are there import statement for classes called Edge, Graph, and Vertex?

I found this primMST java class source code online for the prim algorithm. It was accompanied by another class called BinaryMinHeap, which is used in the primMST class. I copied and pasted the primMST code in NetBeans, and it gave me error labels in the text editor for three classes that were used in the primMST class. They are class Edge, Graph, and Vertex.

There was another error for class List, but I fixed that by using the import statement import java.util.*;

Is there an import statement for the class called "Edge", "Graph", and "Vertex"? I've been searching google but I couldn't find anything. Below is the source code for primMST class.

Re: Are there import statement for classes called Edge, Graph, and Vertex?

IDE's should import them automatically if they can find them (should be on the class path). Otherwise, you need to do it yourself. Since you have the source code the classes can imported specifying the package name followed by a .*. The package is the first statement in a Java file.

Re: Are there import statement for classes called Edge, Graph, and Vertex?

Ugh. This post should have been "I don't think..." Anyway, It's only been 2 days and I couldn't edit it. I believe I have been able to edit much older posts before. Has something changed regarding this capability or am I remembering incorrectly?