How otniel113/vn-producer-influencer works
Project type and purpose
• This is a data‐analysis/research project implemented as a single Jupyter notebook (VN_Producer_Influencer.ipynb).
File structure
• Top level:
• README.md – project description, data source, results, and links
• VN_Producer_Influencer.ipynb – the entire data‐processing and visualization pipeline in one notebook
• No separate src/, backend/, or frontend/ folders—this is a self‐contained analysis.
README for additional insights
• Data flow: SQL query → CSV/DataFrame → networkx graph → centrality metrics → matplotlib/static image and interactive web visualization
• External services: VNDB (data source), GitHub Pages (hosts the interactive viz)
Main components and their interactions
a. Data Source
• VNDB query endpoint (external SQL service)
• Outputs raw table of producer relations
b. Data Ingestion & Preprocessing
• Jupyter Notebook using Python libraries (pandas for dataframes)
• Cleans and transforms raw SQL output into edge list
c. Graph Construction & Computation
• networkx builds an undirected, unweighted graph
• Centrality functions compute Degree, Betweenness, Eigenvector
d. Visualization & Reporting
• matplotlib/seaborn (static graphs, tables)
• Exports: PNG plot embedded in notebook and README
• Interactive visualization: JavaScript based graph (e.g., D3.js or vis.js) deployed on GitHub Pages
e. Hosting & Presentation
• GitHub repository (code and README)
• GitHub Pages serves interactive HTML/JS
Architectural patterns & design principles
• Single‐source notebook for reproducibility
• Separation of concerns via Python libraries for data vs. graph vs. viz
• Optional deployment of static interactive visualization