Skip to content

Commit

Permalink
Added more exports (#44)
Browse files Browse the repository at this point in the history
Added `apex` and `@relation`, `to_graphviz` from Catlab

Co-authored-by: James <[email protected]>
  • Loading branch information
GeorgeR227 and jpfairbanks committed Sep 18, 2024
1 parent 0ab1ef1 commit e46fdec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 4 additions & 1 deletion src/DiagrammaticEquations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"""
module DiagrammaticEquations

using Catlab

export
DerivOp, append_dot, normalize_unicode, infer_states, infer_types!,
# Deca
Expand All @@ -12,6 +14,7 @@ recursive_delete_parents, spacename, varname, unicode!, vec_to_dec!,
Collage, collate,
## composition
oapply, unique_by, unique_by!, OpenSummationDecapodeOb, OpenSummationDecapode, Open, default_composition_diagram,
apex, @relation, # Re-exported from Catlab
## acset
SchDecapode, SchNamedDecapode, AbstractDecapode, AbstractNamedDecapode, NamedDecapode, SummationDecapode,
contract_operators!, contract_operators, add_constant!, add_parameter, fill_names!, dot_rename!, is_expanded, expand_operators, infer_state_names, infer_terminal_names, recognize_types,
Expand All @@ -25,12 +28,12 @@ unique_lits!,
Plus, AppCirc1, Var, Tan, App1, App2,
## visualization
to_graphviz_property_graph, typename, draw_composition,
to_graphviz, # Re-exported from Catlab
## rewrite
average_rewrite,
## openoperators
transfer_parents!, transfer_children!, replace_op1!, replace_op2!, replace_all_op1s!, replace_all_op2s!

using Catlab
using Catlab.Theories
import Catlab.Theories: otimes, oplus, compose, , , , associate, associate_unit, Ob, Hom, dom, codom
using Catlab.Programs
Expand Down
5 changes: 1 addition & 4 deletions test/composition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ using Test
using DiagrammaticEquations
using DiagrammaticEquations.Deca
using Catlab
using Catlab.WiringDiagrams
using Catlab.Programs
using Catlab.CategoricalAlgebra

# import DiagrammaticEquations: OpenSummationDecapode, Open, oapply, oapply_rename

# @testset "Composition" begin
# Simplest possible decapode relation.
Trivial = @decapode begin
Trivial = @decapode begin
H::Form0{X}
end

Expand Down
6 changes: 0 additions & 6 deletions test/language.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
using Test
using Catlab
using Catlab.Theories
using Catlab.CategoricalAlgebra
using Catlab.WiringDiagrams
using Catlab.WiringDiagrams.DirectedWiringDiagrams
using Catlab.Graphics
using Catlab.Programs
using LinearAlgebra
using MLStyle
using Base.Iterators
Expand Down

0 comments on commit e46fdec

Please sign in to comment.