Menu

Project Using JUNG: Pwcomp

2006-08-02
2013-05-29
  • Nobody/Anonymous

    How to make use of JUNG example shortestpathdemo and change to fit into pwcomp?

     
    • Joshua O'Madadhain

      I don't really know how to answer your question.  JUNG and pwcomp are both APIs; you certainly can write code that uses each library, but I don't know what you want to do.  The shortest path demo code is available in the samples/ directory of the JUNG zip distribution; that would be a good place to start.

      Joshua

       
    • Nobody/Anonymous

      What i need to do is search the shortest path pathway in pwcomp, i am trying to use the shortestPathDemo in samples/directory.

      Pwcomp has two panel, for display two pathway, i would like to remove one of the panel and try to put the shortestpathdemo

       
      • Joshua O'Madadhain

        OK, I now have some idea of what you're trying to do.  So what specifically do you want help with? 

        Joshua

         
    • Nobody/Anonymous

      i have done the Pwcomp into one panel, and source and target node combobox available for the user to select.

      the problem is how to use the pwrenderer.java in pwcomp.GUI to draw the shortest path with the given reference shortestpathdemo data structure; the one use in shortestpathdemo is graph, i want it in pathwaygraph. 

       
      • Joshua O'Madadhain

        As far as I can tell, you're asking us how you can do something with the result of a JUNG data analysis in PWComp.  I don't know anything about how to program using PWComp, so you should probably ask them for information on that.  If you have specific questions on how to extract the information about what the shortest path itself is, we can answer them...but we're not really well-equipped to answer questions about how to use PWComp.

        Good luck--

        Joshua

         
    • Nobody/Anonymous

      Ok. What about using the jung API shortestpath alogrithm?

       
      • Joshua O'Madadhain

        I'm not sure what question you're asking.  We can provide some support for working with the shortest path algorithms; what specific questions do you have?  (And have you looked at the Javadoc for the classes?)

        Joshua

         
    • Nobody/Anonymous

      i need an example of the shortest path alogrithm provide by the jung API, other example than that of ShortestPathDemo. 

       
      • Joshua O'Madadhain

        There are a couple of examples of its use in the API itself:

        statistics.GraphStatistics.averageDistances
        algorithms.importance.BaryCenter

        You should also check out the Javadoc for DijkstraDistance and DijkstraShortestPath.

        Joshua

         
    • Nobody/Anonymous

      Thx joshua, i try and see what i can do.

       

Log in to post a comment.