Definition Type: Element
Name: graph
Namespace: http://graphml.graphdrawing.org/xmlns
Type: g:graph.type
Containing Schema: graphml-structure.xsd
Abstract False
Documentation:
Description: Describes one graph in this document.
Occurence: <graphml>, <node>, <edge>, <hyperedge>.
Collapse XSD Schema Diagram:
Drilldown into edgedefault Drilldown into id Drilldown into common.extra.attrib Drilldown into graph.extra.attrib Drilldown into locator Drilldown into hyperedge Drilldown into edge Drilldown into node Drilldown into data Drilldown into desc Drilldown into graph.typeXSD Diagram of graph
Collapse XSD Schema Code:
<?xml version="1.0" encoding="utf-16"?>
<xs:element name="graph" type="graph.type" block="#all">
    <xs:annotation>
        <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
          Description: Describes one graph in this document.
          Occurence: &lt;graphml&gt;, &lt;node&gt;, &lt;edge&gt;, &lt;hyperedge&gt;.
      </xs:documentation>
    </xs:annotation>
    <xs:unique name="graph_data_key_unique">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: uniqueness of the key attributes of &lt;data&gt; children
                 of this &lt;graph&gt; element.
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath="./g:data" />
        <xs:field xpath="@key" />
    </xs:unique>
    <xs:key name="node_id_key">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: existence and uniqueness of the id attributes of 
                 each &lt;node&gt; element in this graph.
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath=".//g:node" />
        <xs:field xpath="@id" />
    </xs:key>
    <xs:unique name="edge_id_unique">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: uniqueness of the id attributes of 
                 each &lt;edge&gt; element in this graph.
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath=".//g:edge" />
        <xs:field xpath="@id" />
    </xs:unique>
    <xs:unique name="hyperedge_id_unique">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: uniqueness of the id attributes of 
                 each &lt;hyperedge&gt; element in this graph.
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath=".//g:hyperedge" />
        <xs:field xpath="@id" />
    </xs:unique>
    <xs:unique name="endpoint_id_unique">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: uniqueness of the id attributes of 
                 each &lt;endpoint&gt; element in this graph.
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath=".//g:endpoint" />
        <xs:field xpath="@id" />
    </xs:unique>
    <xs:keyref name="edge_source_ref" refer="node_id_key">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: for the source attribute of each &lt;edge&gt; in this graph, 
                 the existence of an id attribute of 
                 &lt;node&gt; which matches the value of it. 
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath=".//g:edge" />
        <xs:field xpath="@source" />
    </xs:keyref>
    <xs:keyref name="edge_target_ref" refer="node_id_key">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: for the target attribute of each &lt;edge&gt; in this graph, 
                 the existence of an id attribute of 
                 &lt;node&gt; which matches the value of it. 
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath=".//g:edge" />
        <xs:field xpath="@target" />
    </xs:keyref>
    <xs:keyref name="endpoint_node_ref" refer="node_id_key">
        <xs:annotation>
            <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">
        Ensures: for the node attribute of each &lt;endpoint&gt; in this graph,
                 the existence of an id attribute of 
                 &lt;node&gt; which matches the value of it. 
      </xs:documentation>
        </xs:annotation>
        <xs:selector xpath=".//g:endpoint" />
        <xs:field xpath="@node" />
    </xs:keyref>
</xs:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
desc g:desc 0 (1)
data g:data (1) (1)
node g:node (1) (1)
edge g:edge (1) (1)
hyperedge g:hyperedge (1) (1)
locator g:locator (1) (1)
Collapse Child Attributes:
Name Type Default Value Use
id g:id (Optional)
edgedefault g:edgedefault Required
Collapse Derivation Tree: