-
Notifications
You must be signed in to change notification settings - Fork 5
PartitionsGraphView #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
PartitionsGraphView #104
Changes from 15 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
47598e3
Fix ambiguity on steiner_tree
JoeyT1994 8da3920
Merge remote-tracking branch 'origin/main'
JoeyT1994 dda7376
Merge remote-tracking branch 'origin/main'
JoeyT1994 c9eca8b
Merge remote-tracking branch 'origin/main'
JoeyT1994 6d09f22
Cycle functionality
JoeyT1994 1ef54b1
Function name
JoeyT1994 e752b67
Update src/simplecycles.jl
JoeyT1994 ea33311
Update src/simplecycles.jl
JoeyT1994 29e6f12
Update src/simplecycles.jl
JoeyT1994 4f5e29f
Update src/simplecycles.jl
JoeyT1994 a523800
Remove redundant arg
JoeyT1994 bd8a133
Merge remote-tracking branch 'origin/main'
JoeyT1994 4a632c6
Merge remote-tracking branch 'origin/main'
JoeyT1994 03f4de9
PartitionedGraphView
JoeyT1994 51c71f9
Version bump
JoeyT1994 2386b44
Abstruct subtype. Fix toml
JoeyT1994 668e6dc
Fix toml again
JoeyT1994 b7e71aa
Fix toml again
JoeyT1994 4d37a3c
Update src/lib/PartitionedGraphs/src/partitionedgraphview.jl
JoeyT1994 7083dcb
Refactor
JoeyT1994 500e919
Define partitions_graph(g::AbstractGraph)
JoeyT1994 def431d
PartitionsGraphView
mtfishman 2ea8cb6
Merge branch 'main' into main
mtfishman 1bf06d5
Merge branch 'main' into mf/partitionsgraphview
mtfishman 9b805b0
Create conflict
mtfishman cc6638c
Merge branch 'mf/partitionsgraphview' of github.com:mtfishman/NamedGr…
mtfishman 3aeffc3
Mark as breaking
mtfishman c9a6c7a
Merge pull request #1 from ITensor/mf/partitionsgraphview
JoeyT1994 28dc06f
Bump subdir versions
mtfishman ee14afe
Bump subdir versions
mtfishman 5ab5ff2
Bump subdir versions
mtfishman 986acb6
Merge
JoeyT1994 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| struct PartitionedGraphView{PG} | ||
JoeyT1994 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| value::PG | ||
| end | ||
|
|
||
| value(pgv::PartitionedGraphView) = pgv.value | ||
| Base.copy(pgv::PartitionedGraphView) = PartitionedGraphView(copy(value(pgv))) | ||
| PartitionedGraph(pgv::PartitionedGraphView) = value(pgv) | ||
JoeyT1994 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #Functionality that behaves differently | ||
| for f in [ | ||
| :(Graphs.vertices), | ||
| :(Graphs.edges), | ||
| :(Graphs.induced_subgraph), | ||
| :(Graphs.neighbors), | ||
| :(Graphs.degree), | ||
| :(Graphs.is_tree), | ||
| :(Graphs.is_connected), | ||
| :(Graphs.connected_components), | ||
| :(Graphs.is_cyclic), | ||
| :(NamedGraphs.GraphsExtensions.boundary_edges), | ||
JoeyT1994 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ] | ||
| @eval begin | ||
| function $f(pgv::PartitionedGraphView, args...; kwargs...) | ||
| return $f(partitioned_graph(PartitionedGraph(pgv)), args...; kwargs...) | ||
| end | ||
| end | ||
| end | ||
|
|
||
| #Functionality that behaves the same | ||
| for f in [:unpartitioned_graph] | ||
| @eval begin | ||
| function $f(pgv::PartitionedGraphView, args...; kwargs...) | ||
| return $f(PartitionedGraph(pgv), args...; kwargs...) | ||
| end | ||
| end | ||
| end | ||
JoeyT1994 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.