Thinking about graphing something? Does the thought of writing the code to handle automated layout of your nodes make you brain hurt?
Then you need to check out the Microsoft Automatic Graph Layout library, that's now also available pre-compiled on NuGet...
Microsoft Automatic Graph Layout
A set of tools for graph layout and viewing
The simplest way to start with MSAGL in C# is to open GraphLayout.sln in Visual Studio 2013, and have a look at Samples there.
MSAGL is a .NET tool for graph layout and viewing. It was developed in Microsoft by Lev Nachmanson, Sergey Pupyrev, Tim Dwyer, Ted Hart, and Roman Prutkin.
The Distribution Content and Important Features
The package contains the following:
- Layout engine (Microsoft.MSAGL.dll) - The core layout functionality. This component can be used directly in cases when visualization is handled by a tool other than MSAGL.
- Drawing module (Microsoft.MSAGL.Drawing.dll) - The Definitions of different drawing attributes like colors, line styles, etc. It also contains definitions of a node class, an edge class, and a graph class. By using these classes a user can create a graph object and use it later for layout, and rendering.
- Viewer control (Microsoft.MSAGL.GraphViewerGDIGraph.dll) - The viewer control, and some other rendering functionality.
Some important features of the viewer are:
- Pan and Zoom of the graph.
- Forward and Backward navigation.
- Ability to configure tooltips and highlighting of graph entities.
- Ability to search for and focus on entities of the graph.
Check it out on NuGet, Microsoft.Automatic.Graph.Layout.
Okay, okay so this might not be sexy and shiny, but it IS kind of cool and given it's MIT licensed and open source, there's some cool code to check out...