Richard Samuelson

Results 3 issues of Richard Samuelson

Consider the following two functions, which construct an undirected graph from a collection of edges. ```julia using BenchmarkTools using Catlab using Graphs function make_graph_1(n, edges) graph = Catlab.Graphs.SymmetricGraph(n) for (v₁,...

performance
graphs

Consider the following two functions: ``` using Catlab.WiringDiagrams wd = singleton_diagram(UntypedUWD, 1000000); function collect_ports_1(wd) ps = Int[] for i in ports(wd) push!(ps, i) end ps end function collect_ports_2(wd) ps =...

I think that this code should create a trivial `OpenGraph`. ``` using Catlab.CategoricalAlgebra, Catlab.Programs, Catlab.Graphs, Catlab.WiringDiagrams const _, OpenGraph = OpenCSetTypes(Graph, :V) wd = @relation () begin end oapply(wd, OpenGraph[])...

bug