I've never worked with graphs before but was just asked to model a road network. I found the JGraphT library, which sounds useful, but I can't figure out how to get started. The API shows the constructor as:
public DefaultDirectedGraph(java.lang.Class<? extends E> edgeClass)
I want to create a graph with vertices of my class Coordinate and simple default edges. How do I declare my graph object? I'm not sure what (java.lang.Class<? extends E> edgeClass)
Okay, after answering several questions in this forum myself, I have determined that this may not be a beginner question. I am moving to the Java 2D Forum. Please don't consider it a double post...
Moderator edit: moved this here and deleted the new thread