Menu

To add vertex and edge dynamically

Sindhu
2012-03-28
2013-05-29
  • Sindhu

    Sindhu - 2012-03-28

    I'm using JUNG to get network topology.
    I want to develop GUI,such that if event occurs in network should reflect in GUI graph.
    Is it possible with JUNG?please help me with the code.

     
  • Joshua O'Madadhain

    We have Graph implementations that can listen to events and delegate to an underlying Graph.

    We also have a lot of sample code.

    I recommend starting by looking at our Javadoc and our sample code, and posting again if you have specific questions.

    Joshua

     
  • Sindhu

    Sindhu - 2012-04-12

    Can you please send me the link of samplecode.
    And also
    a)Is it possible to add multiple edges with same edge name?
    b)Is it possible to have 2 edge label for a same edge?
    Please send me the referral point for the above.
    Thanks in advance

     
  • Joshua O'Madadhain

    The sample code is in the source distribution file that we provide.

    To answer your other questions:

    (a) edge objects must be distinct, but each edge may have its own name (label)
    (b) we do not support this, you would have to hack on the existing code

    Joshua

     

Log in to post a comment.