Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

How to move an existing node to a subGraph?

Help
JJC
2012-10-26
2013-04-20
  • JJC
    JJC
    2012-10-26

    on tulip user interface?

    Maybe it has to been done programmatically? through user developed plugin?

    I would assume this is a very rudimentary function.

    Any help is greatly appreciated! Thanks!

    JJ

     
  • Patrick Mary
    Patrick Mary
    2012-10-26

    According to the graph theory, a subgraph of a graph G is a graph whose set of nodes is a subset of that of G, and whose set of edges is a subset of that of G restricted to this node subset.
    So a node cannot be moved in a subgraph.
    But when using Tulip a node can be added in a subgraph:
    - in the gui, just use the copy/paste tools
    - programmatically, use the tlp::Graph::addNode(node) method

    Hope this helps.