Repository navigation
Description
Pre-flight checks
- I have checked the Troubleshooting section in the README.
What happened?
For isolated symbols in a code-only graph, Suggested Questions describes the result as possible documentation gaps or missing edges. A documentation gap is not supported when the graph has no document, paper, or image layer, so the report suggests an inapplicable explanation.
Expected: code-only graphs mention possible missing edges only. Graphs with a document, paper, or image node should keep the current fuller explanation.
Steps to reproduce
uv run --frozen python - <<'PY'
import json
import networkx as nx
from graphify.analyze import suggest_questions
from graphify.report import generate
graph = nx.Graph()
for name in ["parse", "render"]:
graph.add_node(
name,
label=name,
file_type="code",
source_file=f"src/{name}.py",
source_location="L1",
)
communities = {0: ["parse", "render"]}
questions = suggest_questions(graph, communities, {})
report = generate(
graph,
communities,
{},
{},
[],
[],
{"total_files": 2, "total_words": 10},
{},
root="project",
suggested_questions=questions,
min_community_size=1,
)
section = report.split("## Suggested Questions", 1)[1].split("\n## ", 1)[0]
print(json.dumps({
"questions": questions,
"rendered_suggested_questions": section,
}, indent=2))
PYError output or graph output
The producer returns:
{
"type": "isolated_nodes",
"question": "What connects `parse`, `render` to the rest of the system?",
"why": "2 weakly-connected nodes found - possible documentation gaps or missing edges."
}
The report renders the same reason:
_Questions this graph is uniquely positioned to answer:_
- **What connects `parse`, `render` to the rest of the system?**
_2 weakly-connected nodes found - possible documentation gaps or missing edges._
Graphify version
v8 at 0a8cd4e1e342235fe53e881fb5d591bf0460071f.
Operating System
macOS
Python Version
3.12
Installation Method
built from source (git clone)
Additional Environment Details
Reproduced from a clean, unchanged checkout after uv sync --all-extras --frozen with CPython 3.12.11. The editable package resolved to that checkout. This code-only fixture does not require a provider or API key.
Additional context
The issue is limited to the isolated_nodes explanation produced by suggest_questions. The question text, membership, ordering, top_n behavior, dictionary schema, and other question types should remain unchanged. The existing fuller wording should remain exact when any document, paper, or image layer is present.
Activity
github-actions commentedon Oct 30, 2026
Thanks for opening this issue, @oleksii-tumanov. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
fix(analyze): match isolated question reasons to graph layers