Stochastic Blockmodeling Result: Vertex and Edge colors

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))

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

Is this correct, Tiago or others?


attachment.html (5.03 KB)

I suppose you meant:

     j = int(i*(255/(num_blocks-1)))