This page was automatically generated by NetLogo 2.0.0. Questions, problems? Contact feedback@ccl.northwestern.edu.

The applet requires Java 1.4.1 or higher to run. It will not run on Windows 95 or Mac OS 8 or 9. Mac users must have OS X 10.2.6 or higher and use a browser that supports Java 1.4 applets (Safari works, IE does not). On other operating systems, you may obtain the latest Java plugin from Sun's Java site.

created with NetLogo

view/download model file: bounce.nlogo

WHAT IS IT?
-----------
A very simple first graph (edges and nodes) model.


HOW IT WORKS
------------
Nodes are randomly created and linked, then are subject to gravity each step of the model.


HOW TO USE IT
-------------
Change the number of balls slider if you'd prefer a different value. Click "setup" to initialize the nodes and edges. Click "Go" to run the model, or click "Step" to manually run the model one step at a time.


THINGS TO NOTICE
----------------
Not much in the model, this is just a programming exercise to try the NetLogo edges and nodes facility. You can read the code fairly easily to see how the graph is managed.


THINGS TO TRY
-------------
Move the two sliders "friction" and "gravity" while the model is running to see how they change the bouncing balls. Change the code to play with the edges and nodes.


EXTENDING THE MODEL
-------------------
Have the nodes be attracted to the other nodes they are attracted to so that the nodes move in two directions.


NETLOGO FEATURES
----------------
Edges and Nodes! The cool thing is the model NetLogo uses for edges: they are simply agents located at the center of the edge, and long enough to connect the nodes the edge connects. Using floating coordinates lets the graph continuously morph.


RELATED MODELS
--------------
Check out the "layout" model which is a springs and forces model making the graph untangle itself.


CREDITS AND REFERENCES
----------------------
Seth Tisue sent me a very similar model to start out with .. Thanks!