get visibility graph working