Albiston, Gregory 2012 (PGR) has shared a?OneDrive for Business?file with you. To view it, click the link below.
<https://myntuac-my.sharepoint.com/personal/n0472738_my_ntu_ac_uk/Documents/Email%20attachments/netcheck(1).py> [https://r1.res.office365.com/owa/prem/images/dc-generic_20.png]<https://myntuac-my.sharepoint.com/personal/n0472738_my_ntu_ac_uk/Documents/Email%20attachments/netcheck(1).py> netcheck(1).py<https://myntuac-my.sharepoint.com/personal/n0472738_my_ntu_ac_uk/Documents/Email%20attachments/netcheck(1).py> Hello, I've been using the netcheck.py script from sumo/tools/net/ on a large network and found it useful to have a summary of the components in the network, i.e. largest component, largest component % coverage and distribution of components by number of edges (e.g. 1: 50, 2: 3, 400: 1 representing 50 components have 1 edge, 3 components have 2 edges and 1 component has 400 edges). Attached is a link to a modified version based on the latest in the SVN repository if it might be useful, changes mainly from line 120 onward. Results are printed to screen and can optionally be sent to file. Also, changed the string formatting to the str.format() style which works with Python 2.7 and 3.4 (as recommended here: https://docs.python.org/3/library/stdtypes.html#old-string-formatting). I tried searching on the wiki for the process for code submission but didn't spot anything. Thanks, Greg DISCLAIMER: This email is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. In this case, please reply to this email to highlight the error. Opinions and information in this email that do not relate to the official business of Nottingham Trent University shall be understood as neither given nor endorsed by the University. Nottingham Trent University has taken steps to ensure that this email and any attachments are virus-free, but we do advise that the recipient should check that the email and its attachments are actually virus free. This is in keeping with good computing practice. ------------------------------------------------------------------------------ _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
