feat(F-15): citation graph — PageRank, coupling, co-citation, CLI #11
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/F-15-literature-graph"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
codex/graph.py(new):build_citation_graph(DiGraph fromcitationstable, no schema change),citation_pagerank(graceful uniform fallback < 5 nodes +logger.warning),find_related(bibliographic coupling via shared references),find_co_cited,dangling_citationscodex/config.py:graph_cite_boost_alpha=0.3,graph_min_corpus_size=15codex/cli.py:codex graph report [--top-n N] [--json]— hubs + dangling;codex graph related <paper-id> [--min-shared N];codex search paper --cite-boost— PageRank score weighting (multiplicative, graceful on small corpus)tests/graph/: 39 tests covering all graph functions + CLI commandsTest plan
uv run pytest tests/graph/— 39 passeduv run pytest --ignore=tests/integration— 326 passed (0 regressions)uv run ruff check . && uv run ruff format --check .— cleanuv run mypy codex/— 0 issues (25 source files)uv run codex graph report(needs ≥ 15 papers for meaningful PageRank)🤖 Generated with Claude Code