d-separation algorithm visualization