Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 331bd1e

Browse files
Merge pull request #122 from michel2323/master
Initialize result for D1 coloring
2 parents 3314809 + 0e32898 commit 331bd1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coloring/greedy_d1_coloring.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function color_graph(g::VSafeGraph, alg::GreedyD1Color)
1212
result = zeros(Int, v)
1313
result[1] = 1
1414
available = BitVector(undef, v)
15+
fill!(available, false)
1516
for i = 2:v
1617
for j in inneighbors(g, i)
1718
if result[j] != 0

0 commit comments

Comments
 (0)