This articlerelies largely or entirely on asingle source. Relevant discussion may be found on thetalk page. Please helpimprove this article byintroducing citations to additional sources. Find sources: "DGML" – news ·newspapers ·books ·scholar ·JSTOR(November 2015) |
| DGML | |
|---|---|
| Developed by | Microsoft |
| Initial release | September 2009; 16 years ago (2009-09) |
| Type of format | Directed graph |
| Extended from | XML |
| Website | docs |
Directed Graph Markup Language (DGML) is anXML-based file format fordirected graphs.[1]
Here is what a simple directed graph with three nodes and two links between them looks like
<?xml version="1.0" encoding="utf-8"?><DirectedGraphxmlns="http://schemas.microsoft.com/vs/2009/dgml"><Nodes><NodeId="a"Label="a"Size="10"/><NodeId="b"Background="#FF008080"Label="b"/><NodeId="c"Label="c"Start="2010-06-10"/></Nodes><Links><LinkSource="a"Target="b"/><LinkSource="a"Target="c"/></Links><Properties><PropertyId="Background"Label="Background"DataType="Brush"/><PropertyId="Label"Label="Label"DataType="String"/><PropertyId="Size"DataType="String"/><PropertyId="Start"DataType="DateTime"/></Properties></DirectedGraph>
which looks like this:
The completeXSD schema for DGML is available at[1]. DGML not only allows describing nodes and links in a graph, but also annotating those nodes and links with any user defined property and/or category.