Commit 291e3cd9 authored by James C Bowden's avatar James C Bowden
Browse files

Update NodeGraph.java

parent 4deaed8c
1 merge request!1Updates
Pipeline #78062 failed with stage
in 0 seconds
Showing with 3 additions and 3 deletions
+3 -3
......@@ -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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment