http://graphml.graphdrawing.org/xmlns/graphml
element graph

Documentation
Description: Describes one graph in this document. Occurence: <graphml>, <node>, <edge>, <hyperedge>. Ensures: uniqueness of the key attributes of <data> children of this <graph> element. Ensures: existence and uniqueness of the id attributes of each <node> element in this graph. Ensures: uniqueness of the id attributes of each <edge> element in this graph. Ensures: uniqueness of the id attributes of each <hyperedge> element in this graph. Ensures: uniqueness of the id attributes of each <endpoint> element in this graph. Ensures: for the source attribute of each <edge> in this graph, the existence of an id attribute of <node> which matches the value of it. Ensures: for the target attribute of each <edge> in this graph, the existence of an id attribute of <node> which matches the value of it. Ensures: for the node attribute of each <endpoint> in this graph, the existence of an id attribute of <node> which matches the value of it.
Properties
This component is not nillable.

Model
<graph
  edgedefault = graph.edgedefault.type
  id = xs:NMTOKEN>
(desc?, ((data | node | edge | hyperedge)* | locator) )
</graph>


Nested Element Summary
 data
          
 desc
          
 edge
          
 hyperedge
          
 locator
          
 node
          

Attribute Summary
 graph.edgedefault.typeedgedefault
           describes whether edges of this graph are considered as directed or undirected per default (unless specified by the attribute directed of <edge>).  
 xs:NMTOKENid
           identifies this graph .  

Attribute Detail

edgedefault

describes whether edges of this graph are considered as directed or undirected per default (unless specified by the attribute directed of <edge>).

Type:
graph.edgedefault.type
Use:
required
Form:
unqualified

id

identifies this graph .

Type:
xs:NMTOKEN
Use:
optional
Form:
unqualified

Source
<xs:element block="#all" name="graph" type="graph.type">
<xs:unique name="graph_data_key_unique">
<xs:selector xpath="./g:data"/>
<xs:field xpath="@key"/>
</xs:unique>
<xs:key name="node_id_key">
<xs:selector xpath=".//g:node"/>
<xs:field xpath="@id"/>
</xs:key>
<xs:unique name="edge_id_unique">
<xs:selector xpath=".//g:edge"/>
<xs:field xpath="@id"/>
</xs:unique>
<xs:unique name="hyperedge_id_unique">
<xs:selector xpath=".//g:hyperedge"/>
<xs:field xpath="@id"/>
</xs:unique>
<xs:unique name="endpoint_id_unique">
<xs:selector xpath=".//g:endpoint"/>
<xs:field xpath="@id"/>
</xs:unique>
<xs:keyref name="edge_source_ref" refer="node_id_key">
<xs:selector xpath=".//g:edge"/>
<xs:field xpath="@source"/>
</xs:keyref>
<xs:keyref name="edge_target_ref" refer="node_id_key">
<xs:selector xpath=".//g:edge"/>
<xs:field xpath="@target"/>
</xs:keyref>
<xs:keyref name="endpoint_node_ref" refer="node_id_key">
<xs:selector xpath=".//g:endpoint"/>
<xs:field xpath="@node"/>
</xs:keyref>
</xs:element>


© Copyright 2000-2009, yWorks GmbH. All rights reserved.