Skip to content

Commit 7dd77a6

Browse files
committed
rename
1 parent c9468b3 commit 7dd77a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Advanced.Algorithms/Graph/Coloring/MColorer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public MColorResult<T, C> Color(IGraph<T> graph, C[] colors)
2020
{
2121
if (!progress.ContainsKey(vertex))
2222
{
23-
canColor(vertex, colors,
23+
colorRecursively(vertex, colors,
2424
progress,
2525
new HashSet<IGraphVertex<T>>());
2626
}
@@ -50,7 +50,7 @@ public MColorResult<T, C> Color(IGraph<T> graph, C[] colors)
5050
/// <summary>
5151
/// Assign color to each new node.
5252
/// </summary>
53-
private Dictionary<IGraphVertex<T>, C> canColor(IGraphVertex<T> vertex, C[] colors,
53+
private Dictionary<IGraphVertex<T>, C> colorRecursively(IGraphVertex<T> vertex, C[] colors,
5454
Dictionary<IGraphVertex<T>, C> progress, HashSet<IGraphVertex<T>> visited)
5555
{
5656
foreach (var item in colors)
@@ -75,7 +75,7 @@ private Dictionary<IGraphVertex<T>, C> canColor(IGraphVertex<T> vertex, C[] colo
7575
continue;
7676
}
7777

78-
canColor(edge.TargetVertex, colors, progress, visited);
78+
colorRecursively(edge.TargetVertex, colors, progress, visited);
7979
}
8080
}
8181

0 commit comments

Comments
 (0)