Skip to content

Commit 135a7c5

Browse files
author
lennart
committed
fix formatting issues
1 parent 98e50e7 commit 135a7c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/com/thealgorithms/tree/CentroidDecomposition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void findCentroid(int src, int previousCentroid) {
154154
}
155155

156156
for (int node : tree[src]) {
157-
if (!centroidMarked[node]) findCentroid(node, src);
157+
if (!centroidMarked[node]) findCentroid(node, src);
158158
}
159159
}
160160

src/test/java/com/thealgorithms/tree/CentroidDecompositionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private static void assertValidCentroidTree(CentroidDecomposition cd, int n) {
222222
assertEquals(1, roots, "must have exactly one root");
223223
assertEquals(n - 1, edges, "centroid tree must have n-1 edges");
224224
}
225-
225+
226226
private static void copyEdges(CentroidDecomposition from, CentroidDecomposition to) {
227227
to.addEdgeTree(0, 1);
228228
to.addEdgeTree(0, 2);

0 commit comments

Comments
 (0)