-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
3,429 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
pwd; hostname; date | ||
|
||
module load julia | ||
|
||
echo "Running Tests..." | ||
julia --project -t 16 -e 'using Pkg; Pkg.status(); Pkg.test()' | ||
|
||
echo "Building Documentation..." | ||
julia --project=docs -t 16 -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.status(); Pkg.instantiate(); include("docs/make.jl")' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
env: | ||
JULIA_VERSION: "1.10.2" | ||
GATAS_HOME: "$DEPOT" | ||
|
||
steps: | ||
|
||
- label: ":hammer: Build Project" | ||
command: | ||
- "module load julia" | ||
- "julia --project=docs --color=yes -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate(); Pkg.precompile()'" | ||
|
||
- wait | ||
|
||
- label: ":scroll: Build docs and run tests" | ||
env: | ||
JULIA_PROJECT: "docs/" | ||
command: | ||
- "srun --cpus-per-task=16 --mem=64G --time=1:00:00 --output=.buildkite/log_%j.log --unbuffered .buildkite/jobscript.sh" | ||
|
||
- wait | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This file shows benchmarks against the Nauty algorithm currently implemented in CSetAutomorphisms.jl | ||
|
||
using BenchmarkTools | ||
using PkgBenchmark | ||
using Profile | ||
using Test | ||
|
||
using CSetAutomorphisms | ||
using CSetAutomorphisms.NautyInterface: all_autos | ||
using CSetAutomorphisms.TestHelp: Labeled | ||
|
||
using StructuredDecompositions.Decompositions | ||
using StructuredDecompositions.DecidingSheaves | ||
using StructuredDecompositions.FunctorUtils | ||
|
||
using Catlab.Graphs | ||
using Catlab.ACSetInterface | ||
using Catlab.CategoricalAlgebra | ||
using Catlab.Graphics | ||
|
||
# The following structures and functions were pulled from DecidingSheaves.jl | ||
|
||
struct Coloring | ||
n | ||
func | ||
end | ||
|
||
K(n) = complete_graph(Graph, n) | ||
Coloring(n) = Coloring(n, g -> homomorphisms(g, K(n))) | ||
(c::Coloring)(X::Graph) = FinSet(c.func(X)) | ||
function (c::Coloring)(f::ACSetTransformation) | ||
(G₁, G₂) = (dom(f), codom(f)) | ||
(cG₁, cG₂) = (c(G₁), c(G₂)) | ||
FinFunction( λ₂ -> compose(f,λ₂), cG₂, cG₁ ) | ||
end | ||
|
||
skeletalColoring(n) = skeleton ∘ Coloring(n) | ||
|
||
function colorability_test(n, the_test_case) | ||
hom = is_homomorphic(ob(colimit(the_test_case)), K(n)) | ||
dec = decide_sheaf_tree_shape(skeletalColoring(n), the_test_case)[1] | ||
if hom == dec | ||
return hom | ||
else | ||
error("is_homomorphic != decide_sheaf_tree_shape") | ||
end | ||
end | ||
|
Oops, something went wrong.