Skip to content

Commit 269abc3

Browse files
committed
only import specific functions needed from Catlab
1 parent 6f888bc commit 269abc3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Catalyst.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ include("latexify_recipes.jl")
2727

2828
# for making and saving graphs
2929
import Base.Iterators: flatten
30-
using Catlab.Graphics.Graphviz
31-
import Catlab.Graphics.Graphviz: Graph, Edge
30+
import Catlab.Graphics.Graphviz: Graph, Edge, Attributes, Node, Digraph, run_graphviz
3231
include("graphs.jl")
3332
export Graph, savegraph
3433

src/graphs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function Graph(rn::ReactionSystem)
6363
(!isempty(es)) && push!(edges, es)
6464

6565
stmts = vcat(stmts, collect(flatten(edges)))
66-
g = Graphviz.Digraph("G", stmts; graph_attrs=graph_attrs, node_attrs=node_attrs, edge_attrs=edge_attrs)
66+
g = Digraph("G", stmts; graph_attrs=graph_attrs, node_attrs=node_attrs, edge_attrs=edge_attrs)
6767
return g
6868
end
6969

0 commit comments

Comments
 (0)