[graph-tool] Stochastic Blockmodeling Result: Vertex and Edge colors

Lietz, Haiko Haiko.Lietz at gesis.org
Fri Jan 17 10:53:22 CET 2020


Hi Paul,

From how I understand things, you can get the used colors this way:

from graph_tool.all import *
num_blocks = 14
for i in range(0, num_blocks):
    j = int(i*(255/num_blocks-1))
    print(default_cm(j))

Here ``num_blocks`` is the number of colors that are needed (in a celegans case: 14).

Is this correct, Tiago or others?

Haiko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20200117/2afb3024/attachment.htm>


More information about the graph-tool mailing list