DCSIMG
Introduction to Directed Graph Markup Language ( DGML ) - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Introduction to Directed Graph Markup Language ( DGML )

Introduction to Directed Graph Markup Language ( DGML )

Couple of weeks ago I spoke with Ohad Israeli about his conclusions from IDCC conference, it seems like more and more people like to hear about Architecture and Methodology rather than another Developer language or technique.

In my previous post I showed the new features of VS2010 – Visualize Code Relationships (Archicture), as we all know Visual Studio Team System 2010 comes with many new abilities especially in the Testing , Architecture area.

In my upcoming posts I’ll focus about Architecture with Visual Studio Team System 2010 Architecture Edition.

DGML, or "Directed Graph Markup Language" is what we are using in VSTS 2010 Architecture to render graphs like the one below:

image

Open Visual Studio Team System 2010, go to “View” menu and “Architecture Explorer”.

Create new DGML document.

image

To see DGML code “Right Click” and click “View DGML”

image 

Add a Link element as a child element to the Links node, with a Source and Target attribute, you'll get something similar to this:

image

You can add more links and define different source and target.

image

You'll notice the elements isn't even needed to render the graph above.
This is all you need to know to visualize all kinds of data.

Comments

Shai Raiten said:

More About Directed Graph Markup Language ( DGML ) In my last post about Introduction to Directed Graph

# October 3, 2009 8:38 PM

vivek goel said:

nice topic to get directed graph implmented

# January 17, 2010 6:28 AM

Avner said:

Would that be too much to ask what the resulting xml code looks like? I had it hard to find examples of DGML that show various styles of boxes, containers...

I am a bit dissed by the fact there are very few (and very simple) examples of DGML available, much less using styles.

Todah

# October 20, 2011 3:52 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: