xaml-sdk/Diagram/Layout
PavelRPavlov 5013462bc0 SDK Projects' settings update 2014-01-07 16:00:03 +02:00
..
Images Updated SDK examples 2013-10-02 16:09:39 +03:00
Properties Updated SDK examples 2013-10-02 16:09:39 +03:00
App_sl.xaml Updated SDK examples 2013-10-02 16:09:39 +03:00
App_sl.xaml.cs Updated SDK examples 2013-10-02 16:09:39 +03:00
App_wpf.xaml Updated SDK examples 2013-10-02 16:09:39 +03:00
App_wpf.xaml.cs Updated SDK examples 2013-10-02 16:09:39 +03:00
GraphExtensions.cs Updated SDK examples 2013-10-02 16:09:39 +03:00
GraphGenerationSpecifications.cs Updated SDK examples 2013-10-02 16:09:39 +03:00
Layout_SL.csproj Updated SDK examples 2013-10-02 16:09:39 +03:00
Layout_WPF.csproj SDK Projects' settings update 2014-01-07 16:00:03 +02:00
MainView.xaml Updated SDK examples 2013-10-02 16:09:39 +03:00
MainView.xaml.cs Updated SDK examples 2013-10-02 16:09:39 +03:00
MainWindow.xaml Updated SDK examples 2013-10-02 16:09:39 +03:00
MainWindow.xaml.cs Updated SDK examples 2013-10-02 16:09:39 +03:00
SampleItem.cs Updated SDK examples 2013-10-02 16:09:39 +03:00
readme.txt Updated SDK examples 2013-10-02 16:09:39 +03:00

readme.txt

The layout sample highlights two areas or RadDiagram which are somewhat hidden in the API although it comprises a considerable amount of code and power:

- the graph analysis API which implements the typical graph algorithms
- the graph layout API which auto-organizes a graph 

The sample allows you to:

- create random graphs and visualize them. The code shows you how various methods are available in RadDiagram to create (pseudo-random) graphs with certain constraints like connectedness, tree-connected, single component, incidence constraints and so on.
- see how certain parameters affect the graph layout and how different layout algorithms give a different result
- see how certain well-known questions about graphs can be answered using the graph API; what is the shortest path between two nodes, what is a spanning tree in a graph, what is the longest routed between nodes, how many components does the graph have...and more.
- understand the generic way to approach graph analysis using RadDiagram

While this sample is certainly not a full application examplifying a graph-theoretic textbook it is a stepping stone if you wish to go into this direction.