aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-20 19:30:30 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-20 19:38:09 +0200
commitd008224669e9b9cd9264c4779f0c660f32b7458b (patch)
treebc2b1cb9c1164079c39a644b58b66d01c4bee916
parent3481a2467a1f93ccf6de85d7df9d8abe54065dd1 (diff)
add minimally commented default constructor to please javadoc
-rw-r--r--com/example/portfolio3/GraphAlgorithms.java3
-rw-r--r--com/example/portfolio3/Graphs.java19
2 files changed, 21 insertions, 1 deletions
diff --git a/com/example/portfolio3/GraphAlgorithms.java b/com/example/portfolio3/GraphAlgorithms.java
index c542689..ce68349 100644
--- a/com/example/portfolio3/GraphAlgorithms.java
+++ b/com/example/portfolio3/GraphAlgorithms.java
@@ -8,6 +8,9 @@ import java.util.*;
/// foo
public class GraphAlgorithms {
+ /// foo
+ GraphAlgorithms() {}
+
/// Calculates the length of a path or any other collection of edes
///
/// does not require the edges to form a path
diff --git a/com/example/portfolio3/Graphs.java b/com/example/portfolio3/Graphs.java
index 639c4fd..d1ffc9d 100644
--- a/com/example/portfolio3/Graphs.java
+++ b/com/example/portfolio3/Graphs.java
@@ -5,7 +5,12 @@ package com.example.portfolio3;
import java.util.*;
/// foo
-public class Graphs {}
+public class Graphs {
+
+ /// foo
+ Graphs() {}
+
+}
/// foo
class Vertex{
@@ -91,6 +96,9 @@ interface Graph {
abstract class AbstractGraph implements Graph{
/// foo
+ AbstractGraph() {}
+
+ /// foo
private HashMap<String,Vertex> vertexMap=new HashMap<>();
/// foo
@@ -135,6 +143,9 @@ abstract class AbstractGraph implements Graph{
class EdgeGraph extends AbstractGraph {
/// foo
+ EdgeGraph() {}
+
+ /// foo
Set<Edge> edges=new HashSet<>();
/// foo
@@ -169,6 +180,9 @@ class EdgeGraph extends AbstractGraph {
class AdjListGraph extends AbstractGraph {
/// foo
+ AdjListGraph() {}
+
+ /// foo
private Map<Vertex,Set<Edge>> outEdge= new HashMap<>();
/// foo
@@ -211,6 +225,9 @@ class AdjListGraph extends AbstractGraph {
class AdjMapGraph extends AbstractGraph {
/// foo
+ AdjMapGraph() {}
+
+ /// foo
private Map<Vertex, Map<Vertex, Edge>> outEdge = new HashMap<>();
/// foo