Refactored the algorithms code, graph importation must be done from the concrete implementation now.