Skip to content

ANRGUSC/random_graph_visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Random Connected Graph Visualizer

Generate and visualize a connected random graph of n nodes

This Python script generates a connected random graph with a user-defined number of nodes. The nodes are labeled with letters starting from A.

Example to run:

python graph_generator.py 10

This will generate a visualization of a random graph consisting of 10 nodes, labeled A, B, C, etc.

The graph is visualized using the NetworkX and Matplotlib libraries.

Here is an example of the output:

Sample Figure

Requirements

  • Python 3.x
  • NetworkX
  • Matplotlib

To install the required libraries, run the following command:

pip install networkx matplotlib

The Code in this repo has been generated with assistance from GPT-4

About

Generate and visualize a random graph of n nodes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages