OPEN - task 4: Refactorizar ProximityGraph 
https://github.com/lomagno2003/metodos/issues/issue/4