code: public void detachEdge(SquareEdge edge) {
  
  		edge.a.edges[edge.sideA] = null;
  		edge.b.edges[edge.sideB] = null;
  		edge.distance = 0;
  
  		edgeManager.recycleInstance(edge);
  	}
docs: Removes the edge from the two nodes and recycles the data structure