-
Notifications
You must be signed in to change notification settings - Fork 1
/
toy-example.xml
54 lines (54 loc) · 1.99 KB
/
toy-example.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns
http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key id="weight" for="edge" attr.name="weight" attr.type="float"/>
<key id="name" for="node" attr.name="name" attr.type="string"/>
<key id="age" for="node" attr.name="age" attr.type="int"/>
<key id="lang" for="node" attr.name="lang" attr.type="string"/>
<graph id="G" edgedefault="directed">
<node id="1">
<data key="name">marko</data>
<data key="age">29</data>
</node>
<node id="2">
<data key="name">vadas</data>
<data key="age">27</data>
</node>
<node id="3">
<data key="name">lop</data>
<data key="lang">java</data>
</node>
<node id="4">
<data key="name">josh</data>
<data key="age">32</data>
</node>
<node id="5">
<data key="name">ripple</data>
<data key="lang">java</data>
</node>
<node id="6">
<data key="name">peter</data>
<data key="age">35</data>
</node>
<edge id="7" source="1" target="2" label="knows">
<data key="weight">0.5</data>
</edge>
<edge id="8" source="1" target="4" label="knows">
<data key="weight">1.0</data>
</edge>
<edge id="9" source="1" target="3" label="created">
<data key="weight">0.4</data>
</edge>
<edge id="10" source="4" target="5" label="created">
<data key="weight">1.0</data>
</edge>
<edge id="11" source="4" target="3" label="created">
<data key="weight">0.4</data>
</edge>
<edge id="12" source="6" target="3" label="created">
<data key="weight">0.2</data>
</edge>
</graph>
</graphml>