Skip to content

Instantly share code, notes, and snippets.

@maximveksler
Last active May 23, 2021 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximveksler/d206b43375d59231d308eae073e5a0bb to your computer and use it in GitHub Desktop.
Save maximveksler/d206b43375d59231d308eae073e5a0bb to your computer and use it in GitHub Desktop.
Example of edges for the TinkerPop airports dataset http://kelvinlawrence.net/book/Gremlin-Graph-Guide.html#samplesintro
<graphml xmlns='http://graphml.graphdrawing.org/xmlns'>
<key id='type' for='node' attr.name='type' attr.type='string'></key>
<key id='code' for='node' attr.name='code' attr.type='string'></key>
<key id='icao' for='node' attr.name='icao' attr.type='string'></key>
<key id='desc' for='node' attr.name='desc' attr.type='string'></key>
<key id='region' for='node' attr.name='region' attr.type='string'></key>
<key id='runways' for='node' attr.name='runways' attr.type='int'></key>
<key id='longest' for='node' attr.name='longest' attr.type='int'></key>
<key id='elev' for='node' attr.name='elev' attr.type='int'></key>
<key id='country' for='node' attr.name='country' attr.type='string'></key>
<key id='city' for='node' attr.name='city' attr.type='string'></key>
<key id='lat' for='node' attr.name='lat' attr.type='double'></key>
<key id='lon' for='node' attr.name='lon' attr.type='double'></key>
<key id='dist' for='edge' attr.name='dist' attr.type='int'></key>
<key id='labelV' for='node' attr.name='labelV' attr.type='string'></key>
<key id='labelE' for='edge' attr.name='labelE' attr.type='string'></key>
<graph id='routes' edgedefault='directed'>
<node id='0'>
<data key='labelV'>version</data>
<data key='type'>version</data>
<data key='code'>0.77</data>
<data key='desc'>Version: 0.77 Generated: 2017-10-06 16:24:40 UTC
Graph created by Kelvin R. Lawrence
Please let me know of any errors you find in the graph.</data>
</node>
<node id='49'>
<data key='labelV'>airport</data>
<data key='type'>airport</data>
<data key='code'>LHR</data>
<data key='icao'>EGLL</data>
<data key='city'>London</data>
<data key='desc'>London Heathrow</data>
<data key='region'>GB-ENG</data>
<data key='runways'>2</data>
<data key='longest'>12799</data>
<data key='elev'>83</data>
<data key='country'>UK</data>
<data key='lat'>51.4706001282</data>
<data key='lon'>-0.461941003799</data>
</node>
<node id='3612'>
<data key='type'>continent</data>
<data key='code'>EU</data>
<data key='desc'>Europe</data>
<data key='labelV'>continent</data>
</node>
<edge id='50441' source='3612' target='49'>
<data key='labelE'>contains</data>
</edge>
<edge id='4946' source='1' target='49'>
<data key='labelE'>route</data>
<data key='dist'>4198</data>
</edge>
<node id='3598'>
<data key='type'>country</data>
<data key='code'>UK</data>
<data key='desc'>United Kingdom</data>
<data key='labelV'>country</data>
</node>
<edge id='47067' source='3598' target='49'>
<data key='labelE'>contains</data>
</edge>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment