Chapter 6. Input and Output

Table of Contents

Graph Exchange Format GraphML
Reading and Writing Graph Structure Data Using GraphML
What GraphML Looks Like
Working with the GraphML File Format
GraphML Attributes
Reading and Writing Additional Data
Simple vs. Structured Type Support
Reading and Writing Data Using IMappers as Data Holders
General (De)Serialization Support
Custom Serialization and Deserialization
Tutorial Demo Code
Exporting the Canvas's Content
Bitmap-based Image Export

This chapter presents the GraphML file format that is supported with yFiles for Silverlight as graph exchange format and discusses the classes to use for reading and writing of graph structure data.

Graph Exchange Format GraphML

The GraphML file format presents the native graph exchange format supported by yFiles for Silverlight.

Beyond the graph structure, graph exchange format GraphML also supports all visual attributes directly related to the representation of graph elements. In particular, this includes the styles for nodes, edges, ports, etc. which are defined by interfaces INodeStyle, IEdgeStyle, IPortStyle, etc. However, GraphML provides no direct support for further visual aspects like, e.g., zoom level, selection state, or a background image.