Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/coloring.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function partial_distance2_coloring!(
end

"""
star_coloring(g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool)
star_coloring(g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool=false)

Compute a star coloring of all vertices in the adjacency graph `g` and return a tuple `(color, star_set)`, where

Expand All @@ -76,7 +76,7 @@ If `postprocessing=true`, some colors might be replaced with `0` (the "neutral"

> [_New Acyclic and Star Coloring Algorithms with Application to Computing Hessians_](https://epubs.siam.org/doi/abs/10.1137/050639879), Gebremedhin et al. (2007), Algorithm 4.1
"""
function star_coloring(g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool)
function star_coloring(g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool=false)
# Initialize data structures
nv = nb_vertices(g)
ne = nb_edges(g)
Expand Down Expand Up @@ -272,7 +272,7 @@ function symmetric_coefficient(
end

"""
acyclic_coloring(g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool)
acyclic_coloring(g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool=false)

Compute an acyclic coloring of all vertices in the adjacency graph `g` and return a tuple `(color, tree_set)`, where

Expand All @@ -294,7 +294,9 @@ If `postprocessing=true`, some colors might be replaced with `0` (the "neutral"

> [_New Acyclic and Star Coloring Algorithms with Application to Computing Hessians_](https://epubs.siam.org/doi/abs/10.1137/050639879), Gebremedhin et al. (2007), Algorithm 3.1
"""
function acyclic_coloring(g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool)
function acyclic_coloring(
g::AdjacencyGraph, order::AbstractOrder; postprocessing::Bool=false
)
# Initialize data structures
nv = nb_vertices(g)
ne = nb_edges(g)
Expand Down