graph decomposition / transform