oshliaer / oshliaer/server-memory-editor
Третье касание: показывать общие связи соседей
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Описание
При выборе узла сейчас показываются только прямые соседи (1-й уровень). Предлагается добавить "третье касание" — если несколько соседей указывают на один и тот же узел 2-го уровня, этот узел тоже включается в подсветку.
Пример
А → К, Л, М (прямые соседи)
К → Б, В
Л → Г, Д, Я
М → Е, Ж, Я
При выборе А в граф попадут: А, К, Л, М, Я
Я попадает потому что на неё указывают 2+ соседей (Л и М). Б, В, Г, Д, Е, Ж — не попадают, т.к. связаны только с одним соседом.
Логика
connected = {selected} ∪ neighbors(selected)
for each node N at distance 2:
if count(neighbors(selected) that link to N) >= 2:
connected.add(N)
Реализация
Возможно отдельной фичей (toggle в UI), чтобы не перегружать граф по умолчанию.
Связано с
- #7 (зонтичный issue)
- #4 (интерактив)
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 existing node-selection and first-level highlighting entry point in the graph UI, then review the related interactive work in issue #4 and the umbrella issue #7. The change is done when selecting a node also highlights second-level nodes linked by at least two direct neighbors, with any agreed UI toggle behavior covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100