This is working (Python, easier for testing) and tested: n1 = graph.addNode(); n2 = graph.addNode(); graph.addEdge(n1,n2); g = graph.addCloneSubGraph("g"); meta = graph.addCloneSubGraph("meta"); sub.createMetaNode(meta); - metanodes cannot be created on the root graph - subgraph g contains the resulting graph after the creation of the metanode. The content of the metanode should be inside it before the creation of the metanode - subgraph meta is the content of the metanodes. hope this helps
Dear Perry, Metanodes cannot be created on the root graph. You should create another subgraph level and create the metanode on the subgraph. The root graph cannot be used anymore for visualization (it contains the metanodes and the nodes and edges which are inside the metanodes). The following code should work (not tested) : Graph graph = newGraph(); sub = graph->addSubGraph(); Graph subGraph = sub->addSubGraph(); node n1 = subGraph->addNode(); node n2 = subGraph->addNode(); sub->addEdge(n1,n2);...
If you set multiEdges = True, though, the properties of the original edges are still not carried through to the newly created edges Yes. This is possible in C++ and not (yet) in Python. Your strategy is good. This is basically what is done in C++ to do this automatically.
Hello Alberto, Sorry for the delay. What do you mean by singleton? Multiedges=True means that an edge connecting the metanode is created for each replaced edges of the original graph. If Multiedges=False, only one edge is created between the metanode and all connected nodes. delAllEdge is also for the edges connected to the metanode. They will be deleted only from the current graph( delAllEdge=False) or from the whole graph hierarchy. A metanode in a graph G replaced a group of nodes and edges. These...
Hi Faysal, This is normal behavior. You want two different things: on the one hand, computing a metric, and on the other hand mapping the values of the metric to node color. In the plugin list, you have Input Parameter (right blue arrow ) and Ouput Parameter (left red arrow). The output parameters are updated after an execution of the plugin. To see something, you have to apply a color mapping of the value of the viewMetric property (as explained above in the forum) to a color (see Color Mapping...
Improve data type detection when using comma as decimal point. Using QLocale::toDouble (instead of QString::toDouble) seems to be more generic.
Fix Scatterplot2D view progress bar which was going to 200%
minor optimization: use empty() instead of a comparison to an empty