topsort changed.