Skip to content

NamedGraphs v0.9.0#114

Merged
mtfishman merged 65 commits intoITensor:mainfrom
jack-dunham:small-changes
Jan 12, 2026
Merged

NamedGraphs v0.9.0#114
mtfishman merged 65 commits intoITensor:mainfrom
jack-dunham:small-changes

Conversation

@jack-dunham
Copy link
Contributor

@jack-dunham jack-dunham commented Nov 24, 2025

This PR includes the following, possibly breaking changes to NamedGraphs and NamedGraphs.PartitionedGraphs

  • Added some additional NamedGraphs interface functions to various data types.
  • Constructing a graph from a QuotientView now directly calls quotient_graph.
  • Calling edges and vertices on QuotientView now returns according to the interface priority.
  • Add new similar_graph function for generic handling of graph construction.
  • Add a "graph indexing" system to disambiguate inputs to getindex and subgraph. Subtypes of AbstractGraphIndices behave like collections of vertices/edges when iterated over, but can contain contextual information information.

and various other changes...

- `vertices(::QuotientView)` now directly returns the keys
`paritioned_vertices` return value.
- `edges(::QuotientView)` now directly returns the edges of the
`quotient_graph` return value (to coincide with interface overloading
priority)
- Converting a `QuotientView` to graph now calls `quotient_graph`
directly
- Adding methods for return directed/undirected graph types.

Fix imports

Fix rebase
This behaves similarly to `partitionedgraph` function.
…ype by default

This function can now be used `SimpleGraph` etc without promoting to
`NamedGraph`.
This function constructs a graph with no edges, but with vertices of the
quotient graph.
…ype as a parameter

Allows for more generic quotient graph types.
- argument `vertices` must be of type `Base.OneTo{Int}`.
…e, and triple argument methods.

This interface is to overload `similar_graph(graph)`, i.e. the single
argument method.
This function now acts similarly to `similar_graph`.
Co-authored-by: Matt Fishman <mtfishman@users.noreply.github.com>
@jack-dunham jack-dunham changed the title [PartitionedGraphs] Small changes NamedGraphs v0.9.0 Jan 9, 2026
@mtfishman mtfishman merged commit a1dac4b into ITensor:main Jan 12, 2026
13 of 14 checks passed
@jack-dunham jack-dunham deleted the small-changes branch January 13, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants