[graph] fixes to the transformGraph logic

We need to recompute transformGraph, I try to do this intelligently
depending on params change only.

Also, I added preservation of louvain colouring.
parent c78b238e
Pipeline #3636 failed with stage
in 0 seconds