# Graph Gear Example 4

You need to upgrade your Flash Player
Live Graph <?xml version="1.0"?> <graph title="Gooey Graph Demo" bgcolor="ffffff" linecolor="cccccc" viewmode="display" width="725" height="400" segmentlength="75" mass="20" gravity="50" bounce="20" springforce="10" repelforce="10" resistance="10"> <node id="n1" text="Creative Synthesis" image="example1/co.png" link="http://www.creativesynthesis.net" scale="120" color="0000ff" textcolor="0000ff"/> <node id="n2" text="Recycled Research" image="example1/co.png" color="cccccc" textcolor="000000"/> <node id="n3" text="Graph Gear" image="example1/co.png" scale="140" color="0000ff" textcolor="000000"/> <node id="n4" text="Personal Zeitgeist" image="example1/co.png" color="cccccc" textcolor="000000"/> <node id="n5" text="Recycled Canvas" image="example1/co.png" color="cccccc" textcolor="000000"/> <node id="n6" text="Research Art Science" image="example1/co.png" color="cccccc" textcolor="000000"/> <node id="n7" text="Design Graph" image="example1/co.png" color="0000ff" textcolor="000000"/> <edge sourceNode="n1" targetNode="n2" label="" textcolor="555555"/> <edge sourceNode="n1" targetNode="n3" label="" textcolor="555555"/> <edge sourceNode="n1" targetNode="n4" label="" textcolor="555555"/> <edge sourceNode="n1" targetNode="n5" label="" textcolor="555555"/> <edge sourceNode="n2" targetNode="n6" label="" textcolor="555555"/> <edge sourceNode="n2" targetNode="n7" label="" textcolor="555555"/> </graph>
Try it

This example shows the use of some unusual properties of the graph to create a very gooey feeling graph. Normally we recommend not changing these - the default values are pretty good. However, you are welcome to add the following tags to the graph xml file to change the actual force directed layout. These are (with defaults in parentheses): segmentlength (75), mass (2), gravity (0), bounce (.9), springforce (10), repelforce (10), resistance (10). Here we have altered the gravity, mass and bounce. Segmentlength is another good thing to modify.

What else is there to say? This code is available under the gpl, so follow those terms. Send back improvements, extensions, and contributions to code@creativesynthesis.net. Otherwise start by modifying one of the included example files or building a graph here and saving it as an xml file.
The project site is available at: http://www.creativesynthesis.net/blog/projects/graph-gear/