oshliaer / oshliaer/server-memory-editor

Третье касание: показывать общие связи соседей

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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.