-
Notifications
You must be signed in to change notification settings - Fork 14
Home
sk2 edited this page Sep 27, 2011
·
7 revisions
Welcome to the topologyzoo wiki!
To create zoo files: git clone git://github.com/sk2/topologyzoo.git
cd topologyzoo/
you can then convert yed2zoo -d sources/
with the results in sources/zoogml
Use the --geocode parameter: yed2zoo -d sources/ --geocode username
you will need a geonames username from http://www.geonames.org/login
This will geocode each manually.
The output will be present in sources/zoogml_geocoded/
For speed, copy the cache.data file from
https://github.com/sk2/topzootools/tree/master/TopZooTools
into the current working directory
eg
wget https://github.com/sk2/topzootools/blob/master/TopZooTools/cache.data?raw=true
you may need to ignore the certificate error:
wget https://github.com/sk2/topzootools/blob/master/TopZooTools/cache.data?raw=true --no-check-certificate
use zooconvert, options are
sk:topologyzoo sk2$ zooconvert --help
Usage: zooconvert [options]
Options:
-h, --help show this help message and exit
-f FILE, --file=FILE Load data from FILE
-d DIRECTORY, --directory=DIRECTORY
process directory
-o OUTPUT_DIR, --output_dir=OUTPUT_DIR
process directory
--map_dir=MAP_DIR geoplot map input dir for gallery
--single_edge Reduce multi edges to single edge
--internal_only Exclude external nodes
--matlab_keys Generate list of keys for Matlab
--counts_only Only record counts for Matlab keys
--matlab Write Matlab adjacency list Format
--gml Write GML Format
--graphml Write Graphml Format
--dot Write GraphViz dot Format
--gexf Write GEXF Format
--plot Plot graph
--gallery Render gallery HTML
--summary_csv Generate summary data in CSV format
--pickle Write NetworkX Pickle Format
--archive Archive converted files
--html HTML summary
These then go into the converted subdirectory of the target folder. For instance
sk:topologyzoo sk2$ zooconvert -d sources/zoogml_geocoded/ --matlab
sk:topologyzoo sk2$ cat sources/zoogml_geocoded/converted/Aarnet.txt
0 0 0 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0
0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0
1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0
0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0
0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0
0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0