Skip to content

Commit f4ac3be

Browse files
authored
Merge pull request #25 from davide-f/update-version
Update version
2 parents 6580041 + 9a7b77e commit f4ac3be

20 files changed

+3
-14
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LayeredLayouts"
22
uuid = "f4a74d36-062a-4d48-97cd-1356bad1de4e"
33
authors = ["Lyndon White <[email protected]> and contributors"]
4-
version = "0.2.2"
4+
version = "0.2.3"
55

66
[deps]
77
Cbc = "9961bab8-2fa3-5c5a-9d89-47fab24efd76"
@@ -17,7 +17,7 @@ Cbc = "0.7,0.8,0.9,1"
1717
ECOS = "0.12.1,0.13,0.14,1"
1818
Graphs = "1.4"
1919
IterTools = "1.3"
20-
JuMP = "0.21.3, 0.22, 0.23"
20+
JuMP = "0.21.3, 0.22, 0.23, 1"
2121
julia = "1"
2222

2323
[extras]

src/zarate.jl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,10 @@ In 2018 IEEE Pacific Visualization Symposium (PacificVis) (pp. 135-139). IEEE.
2121
"""
2222
Base.@kwdef struct Zarate <: AbstractLayout
2323
time_limit::Dates.Period = Dates.Second(0)
24-
ordering_solver::Any = ()->_default_ordering_solver()
24+
ordering_solver::Any = optimizer_with_attributes(Cbc.Optimizer, "randomSeed"=>1, "randomCbcSeed"=>1)
2525
arranging_solver::Any = ECOS.Optimizer
2626
end
2727

28-
"""
29-
_default_ordering_solver()
30-
31-
Default optimizer for ordering - `Cbc` with the random number seed `randomCbcSeed` set to `1`
32-
"""
33-
function _default_ordering_solver()
34-
optimizer = Cbc.Optimizer()
35-
MOI.set(optimizer, MOI.RawOptimizerAttribute("randomCbcSeed"), 1)
36-
return optimizer
37-
end
38-
3928
"""
4029
solve_positions(::Zarate, graph; force_layer, force_order)
4130

test/references/.DS_Store

-6 KB
Binary file not shown.
-9.68 KB
Loading
-8.14 KB
Loading
-13.5 KB
Loading
-31.9 KB
Binary file not shown.
-2.95 KB
Loading
516 Bytes
Loading
17 Bytes
Loading

0 commit comments

Comments
 (0)