diff options
| author | Ben Culkin <scorpress@gmail.com> | 2023-06-25 15:09:13 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2023-06-25 15:09:13 -0400 |
| commit | 69a769bc6474d71f5108af0698dd5454319e2a6c (patch) | |
| tree | fca5e5772823c826fb206333c3ddf47338d15b82 /base/src/main/java/bjc/utils/graph/Graphs.java | |
| parent | c50f997a46cbd2c889a31750f9558847e80aac61 (diff) | |
Fix a few warnings
Diffstat (limited to 'base/src/main/java/bjc/utils/graph/Graphs.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/graph/Graphs.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/graph/Graphs.java b/base/src/main/java/bjc/utils/graph/Graphs.java index 2844a68..f504b55 100644 --- a/base/src/main/java/bjc/utils/graph/Graphs.java +++ b/base/src/main/java/bjc/utils/graph/Graphs.java @@ -5,11 +5,21 @@ import java.util.*; import bjc.data.Holder; import bjc.data.Identity; +/** + * General graph utilities + * @author bjcul + * + */ public class Graphs { /** * Uses Prim's algorithm to calculate a MST for the graph. * * If the graph is non-connected, this will lead to unpredictable results. + * + * @param grap The graph to calculate MST for + * @param comp The comparator for the edges + * @param <T> The vertex type + * @param <L> The edge type * * @return A list of edges that constitute the MST. */ |
