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

Description

In GraPy all of the nodes in the visualisation are modelled as node objects. Nodes are collected together in a Grapher object, and are drawn to the screen by a Graph object. Each node object must have a different identity (UID) to every other node in the same Graph.

Key points:

  • Every node object must have a different UID to every other node object in the same Graph.
  • A Node object has the physical properties position, velocity and acceleration. Each is a 2 dimensional tuple of floats.
  • A Node object can store arbitrary data in the form of a list in its data variable.

Clone this wiki locally