Added exporting to net files. (For infomap)