Dominating sets algorithm simulation