Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reexport GATlab #864

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 3 additions & 4 deletions docs/literate/graphs/graphs_label.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# # Labeled Graphs
# This example demonstrates how to define new C-Sets from existing C-Sets via the example of adding labels to a graph. We treat labels as members of an arbitrary FinSet of labels rather than a data attribute for pedagogical reasons. When you think of graphs where the labels are numbers, colors, or values of some kind, you would want to make them attributes. The motivation for this example is to be the simplest extension to the theory of graphs that you could possibly make.

using GATlab, Catlab.Theories
using Catlab.CategoricalAlgebra
using Catlab.Graphs
using Catlab.Graphics
using Catlab.Theories, Catlab.CategoricalAlgebra
using Catlab.Graphs, Catlab.Graphics

using Colors
draw(g) = to_graphviz(g, node_labels=true, edge_labels=true)

Expand Down
5 changes: 2 additions & 3 deletions docs/literate/sketches/meets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
using Core: GeneratedFunctionStub
using Test

using GATlab, Catlab.Theories, Catlab.CategoricalAlgebra
using Catlab.Graphics

using Catlab.Theories, Catlab.CategoricalAlgebra, Catlab.Graphics
import Catlab.Theories: compose

using DataStructures

# # Defining some basic preorders
Expand Down
2 changes: 1 addition & 1 deletion docs/literate/sketches/preorders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using Core: GeneratedFunctionStub
using Test

using GATlab, Catlab.Theories, Catlab.CategoricalAlgebra
using Catlab.Theories, Catlab.CategoricalAlgebra
import Catlab.Theories: compose

#=
Expand Down
7 changes: 2 additions & 5 deletions docs/literate/wiring_diagrams/wd_cset.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# # Wiring Diagrams as Attributed C-Sets
# Catlab supports many different flavors of diagrammatic syntax. These support the different combinatorial data structures that we use for representing categorical constructions. We will discuss DirectedWiringDiagrams, UndirectedWiringDiagrams, and CPortGraphs in this document.
using GATlab, Catlab.Theories
using Catlab.CategoricalAlgebra
using Catlab.WiringDiagrams
using Catlab.Programs
using Catlab.Graphics
using Catlab.Theories, Catlab.CategoricalAlgebra
using Catlab.WiringDiagrams, Catlab.Programs, Catlab.Graphics
using Catlab.Graphics: Graphviz

draw(d::WiringDiagram) = to_graphviz(d,
Expand Down
1 change: 0 additions & 1 deletion experiments/Markov/src/MarkovCategories.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export ThMarkovCategory, FreeMarkovCategory,
Ob, Hom, dom, codom, compose, ⋅, ∘, otimes, ⊗, braid, mcopy, Δ, delete, ◊,
expectation, 𝔼

using GATlab
using Catlab.Theories, Catlab.WiringDiagrams
import GATlab: show_latex
import Catlab.Theories: Ob, Hom, dom, codom, compose, ⋅, ∘, otimes, ⊗, braid,
Expand Down
2 changes: 1 addition & 1 deletion experiments/Markov/src/StochExpr.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export crand

using GATlab, Catlab.Theories
using Catlab.Theories


# How do you give semantics to a stochastic map? You call it.
Expand Down
2 changes: 1 addition & 1 deletion experiments/Markov/test/StochMapsExpr.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Test

using GATlab, Catlab.Theories
using Catlab.Theories
using Markov

X = Ob(FreeCartesianCategory, :Float64)
Expand Down
1 change: 0 additions & 1 deletion src/categorical_algebra/CatElements.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export SchElements, AbstractElements, Elements, elements, inverse_elements

using DataStructures: OrderedDict

using GATlab
using ...Theories
using ..CSets, ..FinSets, ..HomSearch

Expand Down
1 change: 0 additions & 1 deletion src/categorical_algebra/FinSets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Tables, PrettyTables

using ACSets
@reexport using ..Sets
using GATlab
using ...Theories, ...Graphs
using ..FinCats, ..FreeDiagrams, ..Limits, ..Subobjects
import ...Theories: Ob, meet, ∧, join, ∨, top, ⊤, bottom, ⊥, ⋅, dom, codom,
Expand Down
1 change: 0 additions & 1 deletion src/graphics/GraphvizCategories.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module GraphvizCategories
export to_graphviz, to_graphviz_property_graph

using GATlab
using ...Theories, ...CategoricalAlgebra, ...Graphs, ..GraphvizGraphs
import ..Graphviz
import ..GraphvizGraphs: to_graphviz, to_graphviz_property_graph
Expand Down
1 change: 0 additions & 1 deletion src/graphs/BipartiteGraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export HasBipartiteVertices, HasBipartiteGraph,
rem_edge₁₂!, rem_edge₂₁!, rem_edges₁₂!, rem_edges₂₁!

using ACSets, ...ACSetsGATsInterop
using GATlab
using ...Theories
using ..BasicGraphs: flatten
import ..BasicGraphs: nv, ne, vertices, edges, src, tgt, add_edge!, add_edges!,
Expand Down
1 change: 0 additions & 1 deletion src/graphs/PropertyGraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export AbstractPropertyGraph, PropertyGraph, SchPropertyGraph,
set_gprop!, set_vprop!, set_eprop!, set_gprops!, set_vprops!, set_eprops!

using ACSets
using GATlab
using ...Theories
using ..BasicGraphs
import ..BasicGraphs: nv, ne, src, tgt, inv, edges, vertices,
Expand Down
4 changes: 3 additions & 1 deletion src/theories/Theories.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ are also included.
module Theories
export CategoryExpr, ObExpr, HomExpr

using Reexport

import Base: ≤, +, *, inv, zero, join, show, collect, ndims
import AlgebraicInterfaces: dom, codom, compose, id, Ob, ob, Hom, hom, munit,
mcompose, ocompose, oapply, attr, attrtype

using GATlab
@reexport using GATlab
import GATlab: show_unicode, show_latex

""" Base type for GAT expressions in categories or other categorical structures.
Expand Down
1 change: 0 additions & 1 deletion src/wiring_diagrams/CPortGraphs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export SchCPortGraph, SchOpenCPortGraph, SchSymCPortGraph, SchOpenSymCPortGraph,
CPortGraph, OpenCPortGraph, SymCPortGraph, OpenSymCPortGraph,
ThBundledCPG, BundledCPG

using GATlab
using ...Theories, ...CategoricalAlgebra, ...Graphs
import ...CategoricalAlgebra: migrate!
import ..DirectedWiringDiagrams: ocompose
Expand Down
1 change: 0 additions & 1 deletion src/wiring_diagrams/MonoidalDirected.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export Ports, Junction, PortOp, BoxOp, functor, permute,

using StructEquality

using GATlab
using ...Theories
import GATlab: functor, head
import ...Theories: dom, codom, id, compose, ⋅, ∘,
Expand Down
3 changes: 1 addition & 2 deletions test/categorical_algebra/ACSetsGATsInterop.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module TestACSetsGATsInterop
using Test

using GATlab
using Catlab.CategoricalAlgebra
using GATlab, Catlab.CategoricalAlgebra
using Catlab.Graphs: SchGraph, SchWeightedGraph

@present SchDendrogram(FreeSchema) begin
Expand Down
1 change: 0 additions & 1 deletion test/categorical_algebra/CSets.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestCSets
using Test

using GATlab
using Catlab.Theories, Catlab.Graphs, Catlab.CategoricalAlgebra

@present SchDDS(FreeSchema) begin
Expand Down
2 changes: 1 addition & 1 deletion test/categorical_algebra/CatElements.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module TestCatElements
using Test
using GATlab

using Catlab.Theories, Catlab.Graphs, Catlab.CategoricalAlgebra

arr = path_graph(Graph, 2)
Expand Down
1 change: 0 additions & 1 deletion test/categorical_algebra/Categories.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestCategories
using Test

using GATlab
using Catlab.Theories
using Catlab.CategoricalAlgebra

Expand Down
1 change: 0 additions & 1 deletion test/categorical_algebra/Chase.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestChase
using Test

using GATlab
using Catlab.Theories, Catlab.CategoricalAlgebra, Catlab.Graphs
using Catlab.CategoricalAlgebra.Chase: egd, tgd, crel_type, pres_to_eds,
from_c_rel, collage
Expand Down
2 changes: 1 addition & 1 deletion test/categorical_algebra/DataMigrations.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module TestDataMigrations
using Test

using GATlab, Catlab.Theories, Catlab.Graphs, Catlab.CategoricalAlgebra
using Catlab.Theories, Catlab.Graphs, Catlab.CategoricalAlgebra
using Catlab.Programs.DiagrammaticPrograms

@present SchSet(FreeSchema) begin
Expand Down
1 change: 0 additions & 1 deletion test/categorical_algebra/FinCats.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestFinCats
using Test

using GATlab
using Catlab.Theories, Catlab.CategoricalAlgebra, Catlab.Graphs

# Categories on graphs
Expand Down
1 change: 0 additions & 1 deletion test/categorical_algebra/FinSets.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestFinSets
using Test

using GATlab
using Catlab.Theories, Catlab.CategoricalAlgebra
using Catlab.CategoricalAlgebra.FinSets: VarSet

Expand Down
1 change: 0 additions & 1 deletion test/categorical_algebra/FunctorialDataMigrations.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestFunctorialDataMigrations
using Test

using GATlab
using Catlab.Theories, Catlab.Graphs, Catlab.CategoricalAlgebra

@present SchSet(FreeSchema) begin
Expand Down
1 change: 0 additions & 1 deletion test/categorical_algebra/StructuredCospans.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestStructuredCospans
using Test

using GATlab
using Catlab.Theories, Catlab.Graphs, Catlab.CategoricalAlgebra

# Structured cospans of C-sets
Expand Down
1 change: 0 additions & 1 deletion test/graphics/GraphvizCategories.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestGraphvizCategories
using Test

using GATlab
using Catlab.Theories, Catlab.CategoricalAlgebra, Catlab.Graphs
using Catlab.Graphics.GraphvizCategories
using Catlab.Graphics: Graphviz
Expand Down
2 changes: 0 additions & 2 deletions test/programs/GenerateJuliaPrograms.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module TestGenerateJuliaPrograms

using Test

using GATlab
using Catlab.Theories
using Catlab.Programs.GenerateJuliaPrograms

Expand Down
2 changes: 0 additions & 2 deletions test/programs/ParseJuliaPrograms.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module TestParseJuliaPrograms

using Test

using GATlab
using Catlab.Theories, Catlab.WiringDiagrams
using Catlab.Programs
using Catlab.Programs.ParseJuliaPrograms: normalize_arguments
Expand Down
1 change: 0 additions & 1 deletion test/theories/Theories.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module TestTheories
using Test

using GATlab
using Catlab.Theories

sexpr(expr::GATExpr) = sprint(show_sexpr, expr)
Expand Down