-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.jl
More file actions
83 lines (75 loc) · 2.16 KB
/
make.jl
File metadata and controls
83 lines (75 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using GraphsColoring
using Graphs, PlotlyJS
using Documenter
import GraphsColoring:
node,
partition,
gather,
color,
colorzones,
_neighbors,
_numelements,
noconflicts,
conflicts,
ConflictFunctor
# this will be moved to BEAST as soon as the pull request is ready
using BEAST
function GraphsColoring.conflicts(
space::BEAST.Space;
addata=BEAST.assemblydata(space),
refspace=BEAST.refspace(space),
kwargs...,
)
elements, ad, _ = addata
conflictindices = Vector{Int}[Int[] for _ in eachindex(elements)]
reference = BEAST.domain(BEAST.chart(geometry(space), first(geometry(space))))
for elementid in eachindex(elements)
for i in 1:numfunctions(refspace, reference)
for (functionid, _) in ad[elementid, i]
push!(conflictindices[elementid], functionid)
end
end
end
return eachindex(elements),
GraphsColoring.ConflictFunctor(conflictindices),
Base.OneTo(numfunctions(space))
end
DocMeta.setdocmeta!(GraphsColoring, :DocTestSetup, :(using GraphsColoring); recursive=true)
makedocs(;
modules=[
GraphsColoring,
if isdefined(Base, :get_extension)
Base.get_extension(GraphsColoring, :GraphsColoringGraphs)
else
GraphsColoring.GraphsColoringGraphs
end,
],
authors="Danijel Jukić <danijel.jukic14@gmail.com> and contributors",
sitename="GraphsColoring.jl",
format=Documenter.HTML(;
prettyurls=true,
canonical="https://djukic14.github.io/GraphsColoring.jl",
edit_link="main",
assets=String[],
),
pages=[
"Home" => "index.md",
"Conflicts" => "conflicts.md",
"Coloring" => [
"Greedy" => "greedy.md",
"DSatur" => "dsatur.md",
"Workstream" => "workstream.md",
],
"Storing colors" => "storage.md",
"Contributing" => "contributing.md",
"API Reference" => "apiref.md",
],
)
deploydocs(;
repo="github.com/djukic14/GraphsColoring.jl",
target="build",
devbranch="main",
push_preview=true,
forcepush=true,
versions=["stable" => "v^", "dev" => "dev"],
)