On 05/20/2014 12:19 AM, Xiaohu Hu wrote: > Hi all, > > I am trying to perform a renormalization on on my graph to test its > self-similarity, as described in the paper by Song et al. Nature 334, 392 > (2005). > > I have a code which assigns all vertices into different boxes, as next, I > would like to merge all vertices in each box into a single, new vertex in > order to get the re-normalized graph. > > My question: Is there better way to do it than manually re-define the whole > graph? i.e. remove all vertices in a box and then re-introduce a new vertex? > Is there a merge function for that maybe?
I don't think there is a better way, and there is no such function implemented in graph-tool (but it should be straightforward for you to write one). Best, Tiago -- Tiago de Paula Peixoto <[email protected]>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
