{"id":17646420,"url":"https://github.com/samuelsonric/nesteduwds.jl","last_synced_at":"2026-03-19T01:38:56.440Z","repository":{"id":223293943,"uuid":"759635314","full_name":"samuelsonric/NestedUWDs.jl","owner":"samuelsonric","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-21T16:31:52.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-31T01:52:53.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samuelsonric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-19T03:19:31.000Z","updated_at":"2024-02-21T21:54:52.000Z","dependencies_parsed_at":"2024-02-21T07:28:34.630Z","dependency_job_id":"eeb5ff5f-a1bb-4a06-9884-143764bb44c1","html_url":"https://github.com/samuelsonric/NestedUWDs.jl","commit_stats":null,"previous_names":["samuelsonric/nesteduwds.jl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samuelsonric/NestedUWDs.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelsonric%2FNestedUWDs.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelsonric%2FNestedUWDs.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelsonric%2FNestedUWDs.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelsonric%2FNestedUWDs.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelsonric","download_url":"https://codeload.github.com/samuelsonric/NestedUWDs.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelsonric%2FNestedUWDs.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30683541,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-19T00:52:14.022Z","status":"ssl_error","status_checked_at":"2026-03-19T00:51:33.610Z","response_time":104,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-23T11:01:34.443Z","updated_at":"2026-03-19T01:38:56.403Z","avatar_url":"https://github.com/samuelsonric.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NestedUWDs.jl\nNestedUWDs.jl is a library for factorizing undirected wiring diagrams. The following example is taken from Spivak, Dobson, Kumari, and Wu, *Pixel Arrays*.\n\n```julia\nusing Catlab\nusing NestedUWDs\n\ndiagram = @relation (a, b, j) begin\n    A(a, c)\n    B(b, c)\n    C(c, d, e)\n    D(d, e, f)\n    G(f, g)\n    F(g, h, i)\n    E(h, i, j)\nend\n\nnuwd = NestedUWD(diagram)\n\nto_graphviz(diagram; box_labels=:name, junction_labels=:variable)\n```\n\n\u003cimg src=\"./uwd.svg\" width=\"500\"/\u003e\n\n\n```julia\nto_graphviz(makeschedule(nuwd); labels=true)\n```\n\n\u003cimg src=\"./dwd.svg\" width=\"400\"/\u003e\n\nThe constructor `NestedUWD` factorizes an undirected wiring diagram as a nested collection of undirected wiring diagrams. The function `makeschedule` represents the nesting structure of the collection as a directed wiring diagram. The function `evalschedule` evaluates the collection.\n\n```julia\nusing CategoricalTensorNetworks\n\na = 2\nb = 2\nj = 2\nc = d = e = f = g = h = i = 10\n\ngenerators = Dict{Symbol, Array{Float64}}(\n    :A =\u003e randn((a, c)),\n    :B =\u003e randn((b, c)),\n    :C =\u003e randn((c, d, e)),\n    :D =\u003e randn((d, e, f)),\n    :G =\u003e randn((f, g)),\n    :F =\u003e randn((g, h, i)),\n    :E =\u003e randn((h, i, j)))\n\nevalschedule(nuwd, generators)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelsonric%2Fnesteduwds.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelsonric%2Fnesteduwds.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelsonric%2Fnesteduwds.jl/lists"}