As I understand your question :
Open your VS2010.
Click
View
>
Architecture Explorer
Then click the first button in opened toolbar whose hint is : "Create a new graph document from all ..."
Right click on newly opened document and click on
View DGML
You will see the DGML.
Add this line:
<Link Source="a" Target="b"></Link>
to the
Links
section. and go to Graph1.dgml wich is updated with two new nodes.
For other option in dgml use google to find more.
Hope it helps.