igraph plot for multiple layers partition does not return expected output

Could you indicate what output you would expect exactly?

Please note that this may be incorrect. You try to detect clusters in the overall graph containing both all layers and the interslice coupling links. You typically want to use a resolution parameter of 0 for the interslice coupling links however. Please see the documentation and the included example for more details. Note that there’s also the simpler find_partition_temporal, which does most of this stuff automatically correctly.

I’m not sure exactly what the expected output would be, but in principle this might not give correct results. The partition is defined on a graph with 3 * 7 = 21 nodes, and the vertex_label that you provide just has 7 entries. For some reason, the entries seem to be recycled across all nodes, but I’m not 100% sure whether the labels refer to the “correct” label always. Instead, you can use

ig.plot(partition, vertex_label = G.vs['id'])

which is guaranteed to have the correct labels.