Add getEdges2() method that is the sema that getEdges but without comprobation
Delete commented code.
Delete unused cast