4445464748495051525354
for (int i = 0; i < vertexCount; i++) { if (!nodesChecked[i]) { nodeQueue.clear(); nodeQueue.addLast(i); nodesChecked[i] = true; IntArrayList clusterGroup = new IntArrayList(); while (!nodeQueue.isEmpty()) {
6364656667686970717273
{ if (!nodesChecked[j]) { if (arcPredicate.isArcPresent(node, j)) { nodeQueue.addLast(j); nodesChecked[j] = true; } } } }