ITensor / ITensor/NamedGraphs.jl
Disable `g[[1, 2, 3]]` for getting an induced subgraph
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 10
- Forks
- 5
- Avg merge
- 6h 43m
- Merged PRs (30d)
- 17
Description
Disable g[[1, 2, 3]] for getting an induced subgraph. The syntax is ambiguous since it isn't clear of [1, 2, 3] is a list of vertices or a single vertex.
As an alternative, we could define an iterator Vertices such that g[Vertices([1, 2, 3])] unambiguously returns and induced subgraph, with the implicit assumption that Vertices can't be used as vertex names of named graphs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation of g[[1, 2, 3]] and the surrounding graph-indexing behavior. Compare the proposed removal with the alternative Vertices([1, 2, 3]) iterator, then confirm the intended API and ensure the ambiguous syntax no longer returns an induced subgraph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100