From 3974ff7e2dc645bb62284706f664168dc062ee98 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 21 Apr 2025 21:13:31 +0200 Subject: mark and document function isConnected() as static utility function --- .../bachelorizer/model/Combi.java" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/model/Combi.java" "b/dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/model/Combi.java" index 077b317..6b517f5 100644 --- "a/dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/model/Combi.java" +++ "b/dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/model/Combi.java" @@ -72,7 +72,7 @@ public final class Combi { Combi combi = new Combi(path); } - /// check that graph is connected + /// utility function to check that a graph is connected /// /// If check fails, throw an unchecked exception, /// since it occurs at runtime and is unrecoverable. @@ -87,7 +87,7 @@ public final class Combi { /// @param g Graph to inspect /// @throws IllegalArgumentException /// https://docs.oracle.com/javase/tutorial/essential/exceptions/runtime.html - public void isConnected(Graph g) { + public static void isConnected(Graph g) { // collect all vertices in the graph Collection c = g.vertices(); -- cgit v1.2.3