key

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>.

Element Information

Model

Children: default, desc

Attributes

QName Type Fixed Default Use Inheritable Annotation
attr.name key.name.type optional
attr.type key.type.type optional
dynamic xs:boolean false optional
for key.for.type all optional
http://graphml.graphdrawing.org/
describes the domain of definition for 
the corresponding graph attribute.
id xs:NMTOKEN required
http://graphml.graphdrawing.org/
identifies this <key>.

Used By

Complex Type graphml.type

Source

<xs:element name="key" type="key.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>.</xs:documentation>
  </xs:annotation>
</xs:element>

Sample

< key xmlns = "http://graphml.graphdrawing.org/xmlns/1.0rc" id = "k0" for = "node" attr.name = "node_label" attr.type = "string" >

< desc>

node label

</ desc>

< default>

no default specified

</ default>

</ key>