https://github.com/hemangsharma/hops-graph-visualization
This Jupyter Notebook generates and visualizes a hops graph based on user input. It starts from a single node 'A' and extends to multiple nodes based on the specified number of hops.
https://github.com/hemangsharma/hops-graph-visualization
Last synced: 2 months ago
JSON representation
This Jupyter Notebook generates and visualizes a hops graph based on user input. It starts from a single node 'A' and extends to multiple nodes based on the specified number of hops.
- Host: GitHub
- URL: https://github.com/hemangsharma/hops-graph-visualization
- Owner: hemangsharma
- Created: 2024-03-01T23:44:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-02T00:00:33.000Z (about 1 year ago)
- Last Synced: 2024-03-03T00:37:19.058Z (about 1 year ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hops-Graph-Visualization
This Jupyter Notebook generates and visualizes a hops graph based on user input. The hops graph starts from a single node 'A' and extends to multiple nodes based on the number of hops specified by the user. It uses NetworkX and Plotly libraries for graph generation and visualization, providing an interactive and detailed representation of the hops graph.
## How to Use
1. Clone the repository to your local machine:
```
git clone https://github.com/hemangsharma/Hops-Graph-Visualization
```2. Install the required Python packages:
```
pip install networkx matplotlib plotly
```3. Run the jupyter notebook `hops_graph.ipynb`:
```
hops_graph.ipynb
```4. Enter the number of hops when prompted. The script will generate and display the hops graph along with the time taken for creation and visualization.
## Example
Here is an example of a hops graph visualization when entering '2':

## Contributors
- [Hemang Sharma](https://github.com/hemangsharma)
Feel free to contribute to this project by submitting issues or pull requests.