Hi Tiago, > > My guess here is that joblib is using pickle in the background, which ended > up copying the whole states and their graphs, making the property maps > incompatible. Try changing the last line to: >
Reading the joblib documentation, I understand it uses cloudpickle in place of pickle as default (https://joblib.readthedocs.io/en/latest/auto_examples/serialization_and_wrappers.html#sphx-glr-auto-examples-serialization-and-wrappers-py). > print(gt.modularity(selected.g, selected.get_blocks())) > That works, thank. As a matter of fact this works as well pmode = gt.PartitionModeState([x.get_blocks().a for x in pstates], converge=True) I guess because every entry in the pstates list owns its own graph. Thanks! d _______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
