Results 1 to 2 of 2

Thread: JGraphT

  1. #1
    joeyvitoro is offline Member
    Join Date
    Oct 2011
    Posts
    90
    Rep Power
    0

    Cool 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

  2. #2
    joeyvitoro is offline Member
    Join Date
    Oct 2011
    Posts
    90
    Rep Power
    0

    Default 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 thread
    Last edited by DarrylBurke; 10-25-2011 at 10:53 PM. Reason: Moved the thread

Similar Threads

  1. Replies: 1
    Last Post: 03-21-2011, 05:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •