Interactive graph visualization in python

I have a program written in python using the networkx module to create a dynamic graph. This is a planar graph where the vertices remain constant, but the edges change. Now I am looking for a library that allows me to do two things in a quick and fast way:

  • Drawing vertices in the form of lattice points inside a rectangle, i.e.

    Lattice

  • The ability to select edges and vertices to change their color, position, weight, etc., as shown in the figure.

thanks

+4
source share
1 answer

For a modest graph size, any good python graphics library should provide enough primitives to solve this problem. For example, Pyglet or PyGame would be appropriate.

+1
source

All Articles