Reactive collision avoidance using essential visibility graphs