Skip to content

This repository aims to implements visual manipulations to a graph from NetworkX, based on the pyqtgraph library.

License

Notifications You must be signed in to change notification settings

LBeghini/GraphManipulation.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⬡ GraphManipulation.py

This project uses an external library, pyqtgraph, based on the custom graph item example to implements visual modification to a NetworkX graph. This project is based on the needs of another project developed to filter graphs based equations and conditions.

Features

  • Create node
  • Create edge
  • Remove node
  • Remove edge
  • Drag nodes
  • Zoom graph

The unchecked options are yet to be completed. Take a look at the developtment of the library here.

Technologies

Requirements

To run and edit the project, be sure to have installed in your computer the following softwares:

After that, you'll need to clone this repo:

git clone https://github.com/eppica/Vogels-Approximation-Method.git

Setup

Inside the project directory, create a virtual environment (venv)

At the cmd, type:

python -m venv ./venv

After that you should see a venv directory.

To run commands using venv, go to Scripts directory inside venv:

GraphManipulation
│   main.py
│   ...
└─── 🗀 venv
     └─── 🗀 Scripts
          │   activate

To use the virtual environment, run:

activate

Then, using the virtual environment, install the project requirements:

pip install -r requirements.txt

That will prevent you to install the libs in the local computer, and it will be available only on the project scope.

Editing

Whenever you install a new library, you need to update the requirements.txt file.

At the cmd, run:

pip freeze > requirements.txt

Running

venv:

To see the project running, inside the virtual environment at cmd, run:

python main.py

⚖️ License

MIT License

About

This repository aims to implements visual manipulations to a graph from NetworkX, based on the pyqtgraph library.

Topics

Resources

License

Stars

Watchers

Forks

Languages