ITensor / ITensor/NamedGraphs.jl

Disable `g[[1, 2, 3]]` for getting an induced subgraph

Open
#43 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.