boolean isValid = checkNeighbors(graph, edge, source, target);
boolean isValid = checkNeighbors(graph, edge, source, target);
boolean isValid = checkNeighbors(graph, edge, source, target);
boolean isValid = checkNeighbors(graph, edge, source, target);