yFiles Tutorial Base Demos

The following tutorial base demos are in this package:

Class Description
demo.base.ListDemo Demonstrates how to use the yFiles linked list data type y.base.YList.
demo.base.GraphDemo Demonstrates how to use the yFiles directed graph data type y.base.Graph.
demo.base.NodeMapTest Demonstrates how to use node maps. The demo compares the performance of different mechanisms to bind extra data to the nodes of a graph.
demo.base.ExtendedGraph This class represents an extended Graph object whose nodes and edges carry additional data.
demo.base.RandomGraphGenerator Implementation of a random graph generator. The size of the graph and other options may be specified. These options influence the properties of the created graph.

Running the Demos

From Within an IDE

Set <yFilesDir>/src as your source directory. Then add <yFilesDir>/lib/y.jar and the source folder <yFilesDir>/src to your classpath. Now you should be ready to compile and run all executable demo classes.

With Ant

First make sure you have the build tool Ant installed on your system. Now you can use the demo build script build.xml located in <yFilesDir>/src/demo to launch each demo by specifying its simple class name as a target. Alternatively, launch the interactive demo driver by specifying run as target to conveniently access all demos.