edge

http://graphml.graphdrawing.org/
Description: Describes an edge in the <graph> which contains this
             <edge>.
Occurence: <graph>.

Element Information

Model

Children: data, desc, graph

Attributes

QName Type Fixed Default Use Inheritable Annotation
directed xs:boolean optional
http://graphml.graphdrawing.org/
overwrites the edgedefault attribute of <graph> .
id xs:NMTOKEN optional
http://graphml.graphdrawing.org/
identifies this edge .
source xs:NMTOKEN required
http://graphml.graphdrawing.org/
points to the id attribute of the source <node>.
sourceport xs:NMTOKEN optional
http://graphml.graphdrawing.org/
points to the name attribute of the source <port>.
target xs:NMTOKEN required
http://graphml.graphdrawing.org/
points to the id attribute of the target <node>.
targetport xs:NMTOKEN optional
http://graphml.graphdrawing.org/
points to the name attribute of the target <port>.

Used By

Complex Type graph.type

Source

<xs:element name="edge" type="edge.type" block="#all">
  <xs:annotation>
    <xs:documentation source="http://graphml.graphdrawing.org/" xml:lang="en">Description: Describes an edge in the <graph> which contains this <edge>. Occurence: <graph>.</xs:documentation>
  </xs:annotation>
  <xs:unique name="edge_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 <edge> 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>

< node id = "n2" >

< data key = "k0" >

C

</ data>

< data key = "k1" >

151.168

</ data>

< data key = "k2" >

406.037

</ data>

</ node>

< node id = "n3" >

< data key = "k0" >

D

</ data>

< data key = "k1" >

144.251

</ data>

< data key = "k2" >

96.1345

</ data>

</ node>

< node id = "n4" >

< data key = "k0" >

E

</ data>

< data key = "k1" >

197.557

</ data>

< data key = "k2" >

237.627

</ data>

</ node>

< node id = "n5" >

< data key = "k0" >

F

</ data>

< data key = "k1" >

266.81

</ data>

< data key = "k2" >

240.365

</ data>

</ node>

< node id = "n6" >

< data key = "k0" >

G

</ data>

< data key = "k1" >

338.837

</ data>

< data key = "k2" >

429.559

</ data>

</ node>

< node id = "n7" >

< data key = "k0" >

I

</ data>

< data key = "k1" >

440.468

</ data>

< data key = "k2" >

430.468

</ data>

</ node>

< node id = "n8" >

< data key = "k0" >

H

</ data>

< data key = "k1" >

332.489

</ data>

< data key = "k2" >

69.5434

</ data>

</ node>

< node id = "n9" >

< data key = "k0" >

J

</ data>

< data key = "k1" >

434.056

</ data>

< data key = "k2" >

53.7272

</ data>

</ node>

< edge source = "n0" target = "n1" />

< edge source = "n0" target = "n2" />

< edge source = "n1" target = "n3" />

< edge source = "n3" target = "n4" />

< edge source = "n2" target = "n4" />

< edge source = "n4" target = "n5" />

< edge source = "n5" target = "n6" />

< edge source = "n6" target = "n7" />

< edge source = "n7" target = "n9" />

< edge source = "n9" target = "n8" />

< edge source = "n8" target = "n7" />

< edge source = "n9" target = "n6" />

< edge source = "n5" target = "n8" />

< edge source = "n0" target = "n3" />

< edge source = "n1" target = "n2" />

< edge source = "n1" target = "n0" />