Menu

MetaNode

Help
Phajja
2014-04-23
2014-04-27
  • Phajja

    Phajja - 2014-04-23

    Can anyone please guide that how should I make metanodes using tulip and qtcreator. I am unable to find the appropriate documentation to get along. Thanks a lot.

     
  • Phajja

    Phajja - 2014-04-27

    Well, yes I have already seen the documentation. I was asking for something specific to creating meta nodes. I try to elaborate here. If I am using the tulip tool for building graphs, sub-graphs and then creating their metanodes, it is easy to build it. As we have a group command in the edit menu, also what I did was select some nodes and then applied the "Induced subgraph " algorithm and then created meta nodes from selected nodes and edges.
    Now I would like to apply the same approach using QT. What I have been able to accomplish so far is that I can have multiple selection of nodes using the induced subgraph algorithm and then create subgraphs out of it. I want to make meta nodes and I am using createMetaNode function. It does create an additional node but the view of the graph layout does not change. I want to view group of metanodes in bounding circles with labels on them. I might be missing something very common. But if you can please guide me to the right direction, then it would be of great help.

     
  • Adam Miller

    Adam Miller - 2014-04-27

    Well after you create a meta node, you can add it to a selection. Then you can apply a layout to the selection only. I haven't ever applied a layout to a selection or to a subgraph only, so if I were you, I would just try to find in the api how to affect the viewLayout attribute of only those nodes. If you have to, you can move them all manually. There's an example in this help forum where I told how to use viewLayout[n] = tlp.Coord to do it.

     

Log in to post a comment.