From f46511896f1ab26427403dbeb8c61278f84cde5e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 28 Apr 2025 15:00:36 +0200 Subject: make function GraphAlgorithms.sortVertex() public --- src/com.example.portfolio3/com/example/portfolio3/GraphAlgorithms.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com.example.portfolio3') diff --git a/src/com.example.portfolio3/com/example/portfolio3/GraphAlgorithms.java b/src/com.example.portfolio3/com/example/portfolio3/GraphAlgorithms.java index 01fa57b..9337ac1 100644 --- a/src/com.example.portfolio3/com/example/portfolio3/GraphAlgorithms.java +++ b/src/com.example.portfolio3/com/example/portfolio3/GraphAlgorithms.java @@ -132,7 +132,7 @@ public class GraphAlgorithms { /// sort a collection of vertices based on their name /// @param vertices foo /// @return List - static List sortVertex(Collection vertices){ + public static List sortVertex(Collection vertices){ ArrayList list=new ArrayList<>(vertices); Collections.sort(list,(Vertex v1,Vertex v2)-> v1.name().compareTo(v2.name())); return list; -- cgit v1.2.3