This repository visualizes relationships between selected publicly traded companies, their industries, and their broader market sectors.
The network graph groups are:
- Sectors โ top-level market categories
- Industries โ specific business areas
- Stocks โ individual companies
The visualization was generated in Python with networkx and matplotlib.
Below is the rendered network graph (Stocks Network Graph.png) showing all tickers and their connections:
Green nodes represent sectors, blue nodes represent industries, and orange nodes represent stocks.
- Data Mapping: Each ticker was mapped to its GICS-style sector and industry.
- Graph Creation:
networkxcreated a three-level network (sector โ industry โ stock). - Visualization: A spring layout was used for the โbubble-planetโ style.
To reproduce the graph, run the included Python script (network_graph.py) or the code in this READMEโs scripts section.
Clone the repository and run the script:
git clone https://github.com/<your-username>/<your-repo>.git
cd <your-repo>
python network_graph.py