<div dir="ltr"><div>Hi</div><div><br></div><div>I'd like to release a script I wrote as a subplugin of processing.</div><div><br></div><div>The code can be found here: <a href="https://github.com/eborke/QGISGraphPlugin">https://github.com/eborke/QGISGraphPlugin</a></div><div><br></div><div>My script builds a graph from a vector layer of polygons in the following way:</div><div>The vertices (or nodes) of the graph are the values taken on by an attribute field of the vector layer. There is an edge between two vertices if any of their associated polygons intersect. It also appends a dictionary of attributes to each vertex which were castable to either a string or a float.</div><div><br></div><div>It isn't hard to write a short very simple script to do this, which will run fine for a small data set. The value in my script is that it is optimized for large data sets (any further optimization ideas are certainly welcome). For example, a simple initial script took approximately 87 minutes to run over a test data set consisting of nearly 8000 polygons on a global scale. The current version runs the same test data in approximately 12 minutes.</div><div><br></div><div>The output of my script is a pickled Network X graph. The user can then write their own scripts to analyze the graph in the context of their problem using the Network X library. Should they prefer not to use the Network X library, they can simply comment out lines 3 and 367 and my script will output the graph as a pickled dictionary based data structure for which they can write their own analysis algorithms.</div><div><br></div><div>I've been told my script is not yet up to the standards for release. Any direction you can give me for getting it there would be appreciated.</div><div><br></div><div>Erik</div></div>