Aligning partition modes of nested partitions

Hi Prof. Peixoto,

OS: Ubuntu 22
graph tool: 2.77

MWE

import graph_tool.all as gt
import dill as pickle

with open(f'mode_alignment.pkl', 'rb') as f:
    [mode, pmode] = pickle.load(f)

mode.align_mode(pmode)

the file:
mode_alignment.pkl (4.2 MB)

I wanted to align the partitions in a PartitionModeState() with another object. These are nested partitions.
The problem is: python kernel crashes while aligning a PartitionModeState() object with another object.

I am able to align the mode with pmode for non nested partitions, but unable to do so for nested partitions.

Many thanks,
Govinda

I tried to align pmode with mode; it works!

pmode.align_mode(mode)

but I want to align the other way around, which doesn’t!