data

http://graphml.graphdrawing.org/
Description: In GraphML there may be data-functions attached
             to graphs, nodes, ports, edges, hyperedges and
             endpoint and to the whole collection of 
             graphs described by the content of <graphml>. 
             These functions are declared by <key> elements
             (children of <graphml>) and defined by <data>
             elements.
Occurence: <graphml>, <graph>, <node>, <port>, 
           <edge>, <hyperedge>, and <endpoint>.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
id xs:NMTOKEN optional
http://graphml.graphdrawing.org/
identifies this <data>.
key xs:NMTOKEN required
http://graphml.graphdrawing.org/
refers to the id attribute of a <key>.
time xs:long 0 optional

Used By

Source

<xs:element name="data" type="data.type" block="#all">
  <xs:annotation>
    <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">Description: In GraphML there may be data-functions attached to graphs, nodes, ports, edges, hyperedges and endpoint and to the whole collection of graphs described by the content of <graphml>. These functions are declared by <key> elements (children of <graphml>) and defined by <data> elements. Occurence: <graphml>, <graph>, <node>, <port>, <edge>, <hyperedge>, and <endpoint>.</xs:documentation>
  </xs:annotation>
  <xs:unique name="data_data_key_unique">
    <xs:annotation>
      <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">Ensures: uniqueness of the key attributes of <data> children of this <data> element.</xs:documentation>
    </xs:annotation>
    <xs:selector xpath="./g:data"/>
    <xs:field xpath="@key"/>
    <xs:field xpath="@time"/>
  </xs:unique>
</xs:element>

Sample

< node xmlns = "http://graphml.graphdrawing.org/xmlns/1.0rc" id = "n0" >

< data key = "k0" >

A

</ data>

< data key = "k1" >

62.6202

</ data>

< data key = "k2" >

410.914

</ data>

</ node>