Microsoft Automatic Graph Layout (MSAGL)

    General discussion

  • MSAGL is a .NET tool for graph layout and viewing directed graphs. It was developed in Microsoft Research by Lev Nachmanson. MSAGL is built on the principle of the Sugiyama scheme; it produces so called layered, or hierarchical layouts. This kind of a layout naturally applies to graphs with some flow of information. The graph could represent a control flow graph of a program, a state machine, a C++ class hierarchy, etc.


    The MSAGL home page is


    MSAGKL is not free, it must be purchased.  It can be purchased here.


    Code samples can be found here.


    Another FAQ can be found here.

    Wednesday, March 26, 2008 6:58 PM

All replies

  • (MSAGL) is a .NET tool for laying out and visualizing directed graphs..
    Monday, April 28, 2008 8:26 PM
  • This has been raised before but


    When will windowsmarketplace extend itself beyond the US so MSAGL can be purchased by the hordes of aliens on this planet?


    Friday, June 13, 2008 12:34 AM
  • No, there are no current planes to upgrade MSAGL. It will appear embedded in some Microsoft products, as it did in Visual Studio 2010, but not as a standalone download.

    Lev Nachmanson
    Saturday, July 24, 2010 1:46 PM
  • Hello!
    Who know how to to arrange elements on a circle graph ????
    such as ..
            3 4
         2      5
       1          6
         0       7
            9 8
    Wednesday, July 28, 2010 6:46 AM
  • I would like to know how to do fixed positioning too!

    More important - I'm looking at producing a graph for a website ( where some of the nodes are hyperlinks.
    I can generate a map and build a bitmap (.ashx response stream) and add that to an ImageMap - how would I add the HotSpots to the ImageMap as I can't get them back from the code behind the .ashx (or can I?).  Anybody got or seen an example?

    Monday, August 2, 2010 6:57 PM
  • It is available in Europe



    Lev Nachmanson
    Thursday, November 17, 2011 4:15 PM
  • I have a few licensing questions, which i cannot find anwers in any FAQ or EULA:

    1) If we use the MSDN download "Research Automatic Graph Layout" aloing with its static key, it reports the redistributable files as "Microsoft.GLEE.dll" whereas their real name is "Microsoft.agl.dll" etc. I suppose that is not a problem?

    2) does the license to use and destribute expire if the MSDN abo using to acquire it does?

    2) the msi contains the source code for "Microsoft.agl.Drawing" and "Microsoft.agl.GraphViewerGdi". Are we allowed to change that and distribute the resulting changed compiled code, say, using a different name for the components?   The EULA ist not clear on this point. First it refers to REDIST.TXT, but later it prohibits modification and distribution of modification only if no GPL-like license gets attached. 

    Thank you!

    - Walter Knupe

    Friday, July 18, 2014 2:52 PM
  • MSAGL has become an open source project and can be downloaded at


    Lev Nachmanson

    Friday, February 27, 2015 6:52 AM
  • maybe the text at the top of this thread should be updated or the whole post removed and a new one pinned with the latest state of the MSAGL library to avoid confusing people

    Microsoft MVP J# 2004-2010, Borland Spirit of Delphi 2001

    Wednesday, May 20, 2015 12:37 PM
  • Can also play with AGL at and see graphs from others there at                                                                                                                     

    maybe that is a simple option for testing and brainstorming, but you only enter the graph in text form there and the labels you use for nodes are used as IDs in that text syntax, so I guess you can't have a node with the same label (say House) at two places in the graph. Seems you can also use labels for edges of the graph too (for the links), using the syntax shown at (press PLAY button there and then scroll down to see what graph is generated)

    Microsoft MVP J# 2004-2010, Borland Spirit of Delphi 2001

    Wednesday, May 20, 2015 12:52 PM
  • All these links are dead and point to:

    Thursday, April 11, 2019 2:36 PM
  • Dead link
    Thursday, April 11, 2019 2:36 PM