# abhi-vit/graph-net architecture

> Architecture diagram of the GitHub repository abhi-vit/graph-net, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhi-vit/graph-net
- Repository: https://github.com/abhi-vit/graph-net

## Overview

Graph-Net is a Django research tool: a user submits a topic, the result handler gathers search links and Wikipedia context, obtains a page-based AI summary, and renders a topic-centered knowledge graph with source links. Its main internal layers are request routing, retrieval/scraping, summarization, and graph construction. README capabilities are represented, but the excerpts do not show how the graph data consumed by the result handler is produced; that connection is therefore not asserted.

Main entry points: [`projectIRT/entrypoint/views.py`](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/views.py) (Result handler), [`projectIRT/loluwu.py`](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/loluwu.py) (Page retrieval), [`projectIRT/entrypoint/urls.py`](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/urls.py) (URL routing), [`projectIRT/Crawler_final.py`](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/Crawler_final.py) (Search client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_routing["URL routing<br/>[urls.py]"]
  node_result["Result handler<br/>[views.py]"]
  node_search_page["Search page<br/>[views.py]"]
  node_result_page["Results view<br/>[views.py]"]
end

subgraph group_retrieval["Search and retrieval"]
  node_crawler["Search client<br/>[Crawler_final.py]"]
  node_search_scrape["Page retrieval<br/>[loluwu.py]"]
end

subgraph group_summary["Summarization"]
  node_summarizer["Gemini summarizer<br/>[summarizer.py]"]
end

subgraph group_graph["Knowledge graph"]
  node_graph_builder["Pattern graph builder<br/>[make_graph.py]"]
  node_network_graph["NetworkGraph<br/>[graph_irt.py]"]
end

node_user(("Researcher"))
node_serp{{"SerpApi search"}}
node_web_pages["Web pages"]
node_wikipedia{{"Wikipedia API"}}
node_gemini{{"Gemini AI"}}

node_user -->|"submits query"| node_routing
node_routing -->|"routes request"| node_search_page
node_routing -->|"routes request"| node_result
node_result -->|"fetches links"| node_crawler
node_crawler -->|"queries"| node_serp
node_result -->|"fetches context"| node_wikipedia
node_result -->|"requests summary"| node_search_scrape
node_search_scrape -->|"queries"| node_serp
node_search_scrape -->|"fetches pages"| node_web_pages
node_search_scrape -->|"summarizes page text"| node_summarizer
node_summarizer -->|"generates summary"| node_gemini
node_result -->|"renders results"| node_result_page
node_graph_builder -->|"uses graph model"| node_network_graph

click node_routing "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/urls.py"
click node_result "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/views.py"
click node_search_page "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/views.py"
click node_result_page "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/views.py"
click node_crawler "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/Crawler_final.py"
click node_search_scrape "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/loluwu.py"
click node_summarizer "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/summarizer.py"
click node_graph_builder "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/make_graph.py"
click node_network_graph "https://github.com/abhi-vit/graph-net/blob/main/projectIRT/graph_irt.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routing,node_result,node_search_page,node_result_page toneBlue
class node_crawler,node_search_scrape toneAmber
class node_summarizer,node_serp,node_wikipedia toneMint
class node_graph_builder,node_network_graph toneRose
class node_user,node_web_pages,node_gemini toneIndigo
```

## Components

### Web application

- [URL routing](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/urls.py): `projectIRT/entrypoint/urls.py`
- [Result handler](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/views.py): `projectIRT/entrypoint/views.py`
- [Search page](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/views.py): `projectIRT/entrypoint/views.py`
- [Results view](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/entrypoint/views.py): `projectIRT/entrypoint/views.py`

### Search and retrieval

- [Search client](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/Crawler_final.py): `projectIRT/Crawler_final.py`
- [Page retrieval](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/loluwu.py): `projectIRT/loluwu.py`

### Summarization

- [Gemini summarizer](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/summarizer.py): `projectIRT/summarizer.py`

### Knowledge graph

- [Pattern graph builder](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/make_graph.py): `projectIRT/make_graph.py`
- [NetworkGraph](https://github.com/abhi-vit/graph-net/blob/main/projectIRT/graph_irt.py): `projectIRT/graph_irt.py`

### Other components

- **Researcher**
- **SerpApi search**
- **Web pages**
- **Wikipedia API**
- **Gemini AI**

## Connections

- Researcher → URL routing: submits query (evidence: `README.md`)
- URL routing → Search page: routes request (evidence: `projectIRT/entrypoint/urls.py`)
- URL routing → Result handler: routes request (evidence: `projectIRT/entrypoint/urls.py`)
- Result handler → Search client: fetches links (evidence: `projectIRT/entrypoint/views.py`)
- Search client → SerpApi search: queries (evidence: `projectIRT/Crawler_final.py`)
- Result handler → Wikipedia API: fetches context (evidence: `projectIRT/entrypoint/views.py`)
- Result handler → Page retrieval: requests summary (evidence: `projectIRT/entrypoint/views.py`)
- Page retrieval → SerpApi search: queries (evidence: `projectIRT/loluwu.py`)
- Page retrieval → Web pages: fetches pages (evidence: `projectIRT/loluwu.py`)
- Page retrieval → Gemini summarizer: summarizes page text (evidence: `projectIRT/loluwu.py`)
- Gemini summarizer → Gemini AI: generates summary (evidence: `projectIRT/summarizer.py`)
- Result handler → Results view: renders results (evidence: `projectIRT/entrypoint/views.py`)
- Pattern graph builder → NetworkGraph: uses graph model (evidence: `projectIRT/make_graph.py`)
