DGML
Directed Graph Markup Language (DGML) is an XML-based file format for directed graphs.
Developed by | Microsoft |
---|---|
Initial release | September 2009 |
Type of format | Directed graph |
Extended from | XML |
Website | docs |
Introduction to DGML
Here is what a simple directed graph with three nodes and two links between them looks like
<?xml version="1.0" encoding="utf-8"?>
<DirectedGraph xmlns="http://schemas.microsoft.com/vs/2009/dgml">
<Nodes>
<Node Id="a" Label="a" Size="10" />
<Node Id="b" Background="#FF008080" Label="b" />
<Node Id="c" Label="c" Start="2010-06-10" />
</Nodes>
<Links>
<Link Source="a" Target="b" />
<Link Source="a" Target="c" />
</Links>
<Properties>
<Property Id="Background" Label="Background" DataType="Brush" />
<Property Id="Label" Label="Label" DataType="String" />
<Property Id="Size" DataType="String" />
<Property Id="Start" DataType="DateTime" />
</Properties>
</DirectedGraph>
which looks like this:
The complete XSD schema for DGML is available at . 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.
gollark: Maybe I should try arbitrarily increasing the confusion via recursion.
gollark: If people are randomly assigned (after initial mental development and such) to an environment where they're much more likely to do bad things, and one where they aren't, then it seems unreasonable to call people who are otherwise the same worse from being in the likely-to-do-bad-things environment.I suppose you could argue that how "good" you are is more about the change in probability between environments/the probability of a given real world environment being one which causes you to do bad things. But we can't check those with current technology.
gollark: I think you can think about it from a "veil of ignorance" angle too.
gollark: As far as I know, most moral standards are in favor of judging people by moral choices. Your environment is not entirely a choice.
gollark: If you put a pre-most-bad-things Hitler in Philadelphia, and he did not go around doing *any* genocides or particularly bad things, how would he have been bad?
External links
- http://msdn.microsoft.com/vstudio homepage of Visual Studio
- http://schemas.microsoft.com/vs/2009/dgml page describing the XSD schema for DGML
- http://www.lovettsoftware.com contains videos showing how to use DGML graphs in Visual Studio
- https://msdn.microsoft.com/en-us/library/dd409365.aspx, documentation on how to use DGML
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.