View source: R/graphPresolveByCondensation.R
condenseSearchGraph | R Documentation |
Part of the Steiner Tree solving method involves enumerating all vs all node separators of nodes in differing components. This scales very, very badly and for some runs can actually be the major computational bottleneck. It's also unnecessary as neighbouring prize nodes and terminals will always be in the resultant graph.
condenseSearchGraph(graphToCondense, condensedNodeSep = ";")
graphToCondense |
igraph network that we wish to contract |
condensedNodeSep |
(optional) Specify the value to separate node names with |
This function groups together potential terminals and adds their relevant node attributes together sensibly. For use with steiner solvers in the stoneTrees package.
A graph with neighbouring terminal and potential terminal nodes collapsed to the same node
uncondenseGraph
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.