Commit Graph

6 Commits

Author SHA1 Message Date
Dan Kortschak
af39aebcaa all: replace uses of deprecated ioutil functions 2021-08-17 20:06:07 +09:30
Dan Kortschak
eb0539d9f4 graph/formats/gexf12: check error 2019-01-27 21:39:27 +10:30
Dan Kortschak
056846ef7e gexf12: make slice fields plural and break words apart 2018-10-13 18:53:13 +10:30
Dan Kortschak
406984d374 gexf12: do not use pointers on simple types 2018-10-13 06:13:25 +10:30
Dan Kortschak
59eac3d17e gexf12: fix omitable and unbounded attributes 2018-10-13 06:13:25 +10:30
Dan Kortschak
f48f3e4ab3 graph/formats/gexf12: new package for handling GEXF1.2 graph description files
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
2018-10-11 16:48:29 +10:30