Skip to content

Citation Graph Visualization #116

@huypham37

Description

@huypham37

Overview

Visualize paper connections showing cites/cited-by relationships.

Why

Scientists need to understand how papers relate. "What papers cite this?" and "What does this cite?" reveal research lineage.

Plan

1. Data Model

// Model/CitationLink.swift
struct CitationLink: Codable {
    let sourcePaperId: String  // Paper that cites
    let targetPaperId: String  // Paper being cited
    let context: String?       // Citation context snippet
}

2. Fetch Citation Data

  • Semantic Scholar API (has citation graph)
  • OpenCitations API (open data)
  • Cache locally

3. Graph Visualization

  • Use SwiftUI Canvas or custom view
  • Node = paper (size by citation count)
  • Edge = citation link
  • Pan/zoom navigation
  • Click node → show paper details

4. Graph Modes

  • Ego network: Selected paper + its citations + citing papers
  • Space network: All papers in space + their connections
  • Depth control: 1-hop, 2-hop connections

5. Integration

  • "Show Citation Graph" button on paper
  • Graph view tab in space

Acceptance Criteria

  • Show papers citing selected paper
  • Show papers cited by selected paper
  • Interactive graph visualization
  • Click node opens paper
  • Works with DOI-identified papers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions