Skip to content
Joe Frew edited this page Feb 12, 2014 · 15 revisions

#Description

GraPy is a simple library that makes it easy for users to create interactive force directed graphs.

Features:

  • Utilises PyGame to allow user customisable draw functions for all aspects of the visualisation.
  • Visualisations feature a panning the camera and ability to drag nodes by default.
  • Users can poll for mouse events and node clicks to implement custom behaviours.
  • Visualisation runs in separate thread allowing changes to the graph to be displayed in realtime.
  • Use library without installing on target system. Just copy directory and run. (installation information)

A screenshot of the wikipedia_browser.py demo:

WIKIPEDIA BROWSER DEMO

For more information on the demo, view the readme.

#Usage Overview

GraPy models a directed graph using a Graph which contains a collection of Node objects. Graphs are drawn using a Grapher object which handles physics, drawing and mouse input.

#Installation

For a guide to performing either type of installation, view the readme.

Standard Installation:

GraPy can be installed directly to a system using setuptools, and imported using import grapy.

Use Without Installing:

In cases where it is easier not to install GraPy to the system (for example, bundling the library with a project, or on a system where the user does not have installation rights), the library can be used simply by copying the grapy directory to the desired location.

Clone this wiki locally