You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compute a distance-2 coloring of the given `side` (`1` or `2`) in the bipartite graph `bg` and return a vector of integer colors.
5
8
6
9
A _distance-2 coloring_ is such that two vertices have different colors if they are at distance at most 2.
7
10
8
11
The vertices are colored in a greedy fashion, following the order supplied.
9
12
13
+
The optional `forced_colors` keyword argument is used to enforce predefined vertex colors (e.g. coming from another optimization algorithm) but still run the distance-2 coloring procedure to verify correctness.
14
+
10
15
# See also
11
16
12
17
- [`BipartiteGraph`](@ref)
@@ -17,11 +22,16 @@ The vertices are colored in a greedy fashion, following the order supplied.
17
22
> [_What Color Is Your Jacobian? Graph Coloring for Computing Derivatives_](https://epubs.siam.org/doi/10.1137/S0036144504444711), Gebremedhin et al. (2005), Algorithm 3.2
Compute a star coloring of all vertices in the adjacency graph `g` and return a tuple `(color, star_set)`, where
60
79
@@ -67,6 +86,8 @@ The vertices are colored in a greedy fashion, following the order supplied.
67
86
68
87
If `postprocessing=true`, some colors might be replaced with `0` (the "neutral" color) as long as they are not needed during decompression.
69
88
89
+
The optional `forced_colors` keyword argument is used to enforce predefined vertex colors (e.g. coming from another optimization algorithm) but still run the star coloring procedure to verify correctness and build auxiliary data structures, useful during decompression.
90
+
70
91
# See also
71
92
72
93
- [`AdjacencyGraph`](@ref)
@@ -77,7 +98,10 @@ If `postprocessing=true`, some colors might be replaced with `0` (the "neutral"
77
98
> [_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
Compute an acyclic coloring of all vertices in the adjacency graph `g` and return a tuple `(color, tree_set)`, where
215
247
@@ -222,6 +254,8 @@ The vertices are colored in a greedy fashion, following the order supplied.
222
254
223
255
If `postprocessing=true`, some colors might be replaced with `0` (the "neutral" color) as long as they are not needed during decompression.
224
256
257
+
The optional `forced_colors` keyword argument is used to enforce predefined vertex colors (e.g. coming from another optimization algorithm) but still run the acyclic coloring procedure to verify correctness and build auxiliary data structures, useful during decompression.
258
+
225
259
# See also
226
260
227
261
- [`AdjacencyGraph`](@ref)
@@ -232,7 +266,10 @@ If `postprocessing=true`, some colors might be replaced with `0` (the "neutral"
232
266
> [_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
0 commit comments