Skip to content
A (discrete mathematics) graph visualizer, written in Python using the PyQt5 library.
Branch: master
Clone or download
xiaoxiae update README.md
Add the description of the import/export format
Latest commit fc206a1 Apr 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
graph examples add weighted graph examples Apr 15, 2019
src fix bug in calculate_continuity_sets Apr 16, 2019
.gitignore update .gitignore Apr 9, 2019
README.md
icon.ico add app icon Apr 15, 2019

README.md

Graph Visualizer

The app aims to help creating, visualizing and exporting graphs. It is powered by PyQt5 – a set of Python bindings for the C++ library Qt.

Running the app

Before running the app, make sure to:

  • have Python installed.
  • install the PyQt5 library by running pip install pyqt5 in your terminal.

To launch the app, run __main__.py using Python.

Import/export format

The app uses a simple format for importing and exporting graph. It consists of a list of vertices of the graph. The syntax is as follows, with the values in square brackets being optional:

n1 [direction] n2 [w1] [w2], where

  • n1 and n2 are labels of the nodes that are connected
  • [direction] is only used in directed graphs, and could be either -> (going from n1 to n2), <- (going from n2 to n1) and <> (going both ways)
  • [w1] is the weight of the vertex from n1 to n2
  • [w2] is the weight of the vertex from n2 to n1; is only used in the case of n1 <> n2 w1 w2

Examples of valid graphs can be found in the graph examples/ folder. Note that as long as the file is not binary, the extension doesn't matter.

Sample Images

Sample Images

You can’t perform that action at this time.