GraphML I/O Demos

The following demos show how to use, customize, and extend the GraphML input and output facilities provided by yFiles.

Class Description
demo.io.graphml.GraphMLDemoShows how to use GraphMLIOHandler to load and save a graph in GraphML file format.
demo.io.graphml.GenericNodeRealizerSerializationDemoShows how to (de-)serialize customized GenericNodeRealizers.
demo.io.graphml.CustomNodeRealizerSerializerDemoShows how to write a specific (de-)serializer for GraphMLIOHandler> for a custom NodeRealizer.
demo.io.graphml.CustomNodeRealizerCustom NodeRealizer for use with CustomNodeRealizerSerializerDemo.
demo.io.graphml.CustomNodeRealizerSerializerCustom NodeRealizerSerializer that handles GraphML reading and writing of CustomNodeRealizer.
demo.io.graphml.SimpleAttributesDemoDemonstrates how to configure GraphMLIOHandler to be able to handle simple attributes.
demo.io.graphml.DynamicAttributesDemoDemonstrates how to configure GraphMLIOHandler to be able to handle attributes dynamically.
demo.io.graphml.PostprocessorDemoShows how to process a parsed graph structure before it gets returned by the GraphML parser.
demo.io.graphml.XmlXslDemoDemonstrates how to use XmlXslIOHandler to read XML content with help of additional style sheets.

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.