From 291e3cd9d7c06e0794a5b2882de867a5f863e53c Mon Sep 17 00:00:00 2001 From: James C Bowden <jbowden@caltech.edu> Date: Sun, 19 Feb 2023 05:15:05 +0000 Subject: [PATCH] Update NodeGraph.java --- src/edu/caltech/cs2/coloring/NodeGraph.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/edu/caltech/cs2/coloring/NodeGraph.java b/src/edu/caltech/cs2/coloring/NodeGraph.java index 7a0367f..cd11d84 100644 --- a/src/edu/caltech/cs2/coloring/NodeGraph.java +++ b/src/edu/caltech/cs2/coloring/NodeGraph.java @@ -16,7 +16,7 @@ public class NodeGraph { private static class Node { public int name; public int color; - public ISet<Node> neighbors; // The names of this node's neighbors + public ISet<Node> neighbors; // The set of this node's neighboring nodes public ISet<Integer> neighborColors; // The colors which its neighbors use public ISet<Integer> neighborsUncolored; // The names of its neighbors which aren't yet colored @@ -120,7 +120,7 @@ public class NodeGraph { /** * Gets the degree of saturation of a given vertex - * (ie: the number of unique colors across its neighbors) + * (i.e., the number of unique colors across its neighbors) * @param n The name of the vertex * @return Its degree of saturation */ @@ -191,4 +191,4 @@ public class NodeGraph { } return result + "}"; } -} \ No newline at end of file +} -- GitLab