mirror of
https://github.com/gonum/gonum.git
synced 2025-11-03 03:13:27 +08:00
This was largely written by aqwari.net/xml/cmd/xsdgen working on the XSD
files available from the gephy/gexf specs repository[1], with some help;
the specs use includes which cause xsdgen to fail, so I manually
in-lined the includes.
The generated code was then edited to make optional attributes exist on
pointers, to reduce the length of labels to within reasonably normal Go
idiom and removing unnecessary namespacing.
The package is versioned since the format appears to arbitrarily be
updated.
[1]81ba4e7ccd/specs/1.2draft
52 lines
1.7 KiB
XML
52 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
|
|
<meta lastmodifieddate="2009-03-20">
|
|
<creator>Gephi.org</creator>
|
|
<description>A Web network</description>
|
|
</meta>
|
|
<graph defaultedgetype="directed">
|
|
<attributes class="node">
|
|
<attribute id="0" title="url" type="string"/>
|
|
<attribute id="1" title="indegree" type="float"/>
|
|
<attribute id="2" title="frog" type="boolean">
|
|
<default>true</default>
|
|
</attribute>
|
|
</attributes>
|
|
<nodes>
|
|
<node id="0" label="Gephi">
|
|
<attvalues>
|
|
<attvalue for="0" value="http://gephi.org"/>
|
|
<attvalue for="1" value="1"/>
|
|
</attvalues>
|
|
</node>
|
|
<node id="1" label="Webatlas">
|
|
<attvalues>
|
|
<attvalue for="0" value="http://webatlas.fr"/>
|
|
<attvalue for="1" value="2"/>
|
|
</attvalues>
|
|
</node>
|
|
<node id="2" label="RTGI">
|
|
<attvalues>
|
|
<attvalue for="0" value="http://rtgi.fr"/>
|
|
<attvalue for="1" value="1"/>
|
|
</attvalues>
|
|
</node>
|
|
<node id="3" label="BarabasiLab">
|
|
<attvalues>
|
|
<attvalue for="0" value="http://barabasilab.com"/>
|
|
<attvalue for="1" value="1"/>
|
|
<attvalue for="2" value="false"/>
|
|
</attvalues>
|
|
</node>
|
|
</nodes>
|
|
<edges>
|
|
<edge id="0" source="0" target="1"/>
|
|
<edge id="1" source="0" target="2"/>
|
|
<edge id="2" source="1" target="0"/>
|
|
<edge id="3" source="2" target="1"/>
|
|
<edge id="4" source="0" target="3"/>
|
|
</edges>
|
|
</graph>
|
|
</gexf>
|
|
|