summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/graph/test/graphml_test.xml
blob: 467d29bbdaee3ed2dfa4dacbb911174cbf2adfeb (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright (C) 2006  Tiago de Paula Peixoto <tiago@forked.de>
  
  Distributed under the Boost Software License, Version 1.0. (See
  accompanying file LICENSE_1_0.txt or copy at
  http://www.boost.org/LICENSE_1_0.txt)

  Authors: Tiago de Paula Peixoto
-->
<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="d1" for="node" attr.name="foo" attr.type="int">
    <default>42</default>
  </key>
  <key id="d2" for="edge" attr.name="weight" attr.type="double">
    <default>0.0</default>
  </key>
  <key id="d3" for="node" attr.name="name" attr.type="string">
    <default>hello</default>
  </key>
  <key id="d4" for="graph" attr.name="description" attr.type="string"/>

  <graph id="G" edgedefault="directed">
    <data key="d4">Root graph.</data>
    <node id="n0"/>
    <node id="n1"/>
    <node id="not a canonical node">
      <data key="d1">100</data>
    </node>
    <node id="n3"/>
    <node id="n4">
      <data key="d3">foo&lt;</data>
    </node>
    <node id="n5"/>
    <node id="n6">
        <data key="d1">0</data>
    </node>
    <edge id="e0" source="n0" target="n1" />
    <edge id="e1" source="n1" target="not a canonical node">
      <data key="d2">0.8</data>
    </edge>
    <edge id="e2" source="not a canonical node" target="n6">
      <data key="d2">0.5</data>
    </edge>
    <edge id="e3" source="n3" target="n4">
      <data key="d2">0.2</data>
    </edge>
    <edge id="e4" source="n4" target="n5">
      <data key="d2">10.1</data>
    </edge>
    <edge id="e5" source="n4" target="not a canonical node">
      <data key="d2">5.5</data>
    </edge>
    <edge id="e6" source="n5" target="n6">
      <data key="d2">2.0</data>
    </edge>
    <edge id="e7" source="n6" target="n1">
      <data key="d2">0.1</data>
    </edge>
    <graph id="Nested" edgedefault="directed">
        <data key="d4">Nested graph.</data>
        <node id="n7"/>
        <node id="n8"/>
        <edge id="e8" source="n7" target="n8">
          <data key="d2">10.0</data>
        </edge>
    </graph>
  </graph>
</graphml>