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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Did you find the documentation here:
http://tulip.labri.fr/Documentation/current/tulip-dev/html/index.html
and here:
http://tulip.labri.fr/Documentation/current/tulip-python/html/index.html
?
If you didn't, did you know that when you build it, you get a doc directory in your install folder?
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.
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.