-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
NamedDimGraph
, refactor and simplify
- Loading branch information
Showing
21 changed files
with
604 additions
and
705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
name = "NamedGraphs" | ||
uuid = "678767b0-92e7-4007-89e4-4527a8725b19" | ||
authors = ["Matthew Fishman <[email protected]> and contributors"] | ||
version = "0.0.1" | ||
version = "0.1.0" | ||
|
||
[deps] | ||
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" | ||
Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4" | ||
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6" | ||
MultiDimDictionaries = "87ff4268-a46e-478f-b30a-76b83dd64e3c" | ||
SimpleTraits = "699a6c99-e7fa-54fc-8d76-47d257e15c1d" | ||
|
||
[compat] | ||
AbstractTrees = "0.3, 0.4" | ||
Dictionaries = "0.3" | ||
Graphs = "1" | ||
MultiDimDictionaries = "0.0.1" | ||
SimpleTraits = "0.9" | ||
julia = "1.7" | ||
|
||
[extras] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Graphs | ||
using NamedGraphs | ||
|
||
g1 = NamedDimGraph(grid((2, 2)); dims=(2, 2)) | ||
g2 = NamedDimGraph(grid((2, 2)); dims=(2, 2)) | ||
g = ⊔(g1, g2; new_dim_names=("X", "Y")) | ||
g1 = NamedGraph(grid((2, 2)); vertices=(2, 2)) | ||
g2 = NamedGraph(grid((2, 2)); vertices=(2, 2)) | ||
g = ⊔("X" => g1, "Y" => g2) | ||
|
||
@show g1 | ||
@show g2 | ||
@show g | ||
@show g["X", :] | ||
@show g["Y", :] | ||
@show subgraph(v -> v[1] == "X", g) | ||
@show subgraph(v -> v[1] == "Y", g) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
fa74ea8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
fa74ea8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/73051
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: