node

http://graphml.graphdrawing.org/
Description: Describes one node in the <graph>
             containing this <node>.
Occurence: <graph>.

Element Information

Model

Children: data, desc, graph, locator, port

Attributes

QName Type Fixed Default Use Inheritable Annotation
id xs:NMTOKEN required
http://graphml.graphdrawing.org/
identifies this node.
parse.indegree node.indegree.type optional
parse.outdegree node.outdegree.type optional

Used By

Complex Type graph.type

Source

<xs:element name="node" type="node.type" block="#all">
  <xs:annotation>
    <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">Description: Describes one node in the <graph> containing this <node>. Occurence: <graph>.</xs:documentation>
  </xs:annotation>
  <xs:key name="port_name_key">
    <xs:annotation>
      <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">Ensures: existence and uniqueness of the name attributes of each <port> element within this <node>.</xs:documentation>
    </xs:annotation>
    <xs:selector xpath=".//g:port"/>
    <xs:field xpath="@name"/>
  </xs:key>
  <xs:unique name="node_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 <node> element.</xs:documentation>
    </xs:annotation>
    <xs:selector xpath="./g:data"/>
    <xs:field xpath="@key"/>
    <xs:field xpath="@time"/>
  </xs:unique>
</xs:element>

Sample

< graph xmlns = "http://graphml.graphdrawing.org/xmlns/1.0rc" edgedefault = "directed" >

< node id = "n0" >

< data key = "k0" >

A

</ data>

< data key = "k1" >

62.6202

</ data>

< data key = "k2" >

410.914

</ data>

</ node>

< node id = "n1" >

< data key = "k0" >

B

</ data>

< data key = "k1" >

49.4147

</ data>

< data key = "k2" >

102.043

</ data>

</ node>