Skip to content

Non-deterministic coloring? #21

@gdalle

Description

@gdalle

Is there an explanation for coloring to be non-deterministic with the natural order?

julia> using ColPack, SparseArrays, StableRNGs

julia> J = sprand(StableRNG(63), 100, 200, 0.04)
100×200 SparseMatrixCSC{Float64, Int64} with 828 stored entries:
...

julia> for i in 1:10
           println(maximum(get_colors(ColPackPartialColoring(J, "COLUMN_PARTIAL_DISTANCE_TWO", "NATURAL"))))
       end
19
23
22
21
22
22
23
21
22
22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions