Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-23wi
project06
Commits
291e3cd9
Commit
291e3cd9
authored
2 years ago
by
James C Bowden
Browse files
Options
Download
Email Patches
Plain Diff
Update NodeGraph.java
parent
4deaed8c
master
1 merge request
!1
Updates
Pipeline
#78062
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/edu/caltech/cs2/coloring/NodeGraph.java
+3
-3
src/edu/caltech/cs2/coloring/NodeGraph.java
with
3 additions
and
3 deletions
+3
-3
src/edu/caltech/cs2/coloring/NodeGraph.java
View file @
291e3cd9
...
...
@@ -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 neighbor
ing node
s
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
* (i
e:
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
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help