Function layeringTopological