[enh] Refactoring the polydag behaviors.
Test are broken for the moment !!!