Results 1 to 2 of 2
Thread: JGraphT
- 10-25-2011, 05:29 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 90
- Rep Power
- 0
JGraphT
Hi,
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)
means. Thanks
- 10-25-2011, 07:51 PM #2
Member
- Join Date
- Oct 2011
- Posts
- 90
- Rep Power
- 0
Re: JGraphT
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 threadLast edited by DarrylBurke; 10-25-2011 at 09:53 PM. Reason: Moved the thread
Similar Threads
-
How to use JgraphT or other similar graph making libraries?
By ankit1801 in forum New To JavaReplies: 1Last Post: 03-21-2011, 04:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks