项目作者: maslab-ufrgs

项目描述 :
Network Disturbance System
高级语言: Python
项目地址: git://github.com/maslab-ufrgs/NDS.git
创建时间: 2017-09-27T15:50:39Z
项目社区:https://github.com/maslab-ufrgs/NDS

开源协议:

下载


Network Disturbance System (NDS)

Network Disturbance System is a software that disturbs a traffic network
(graph) by removing 1 random edge and inserting another with the same
attributes but with different start and end nodes.

Requirements

Networks

Available at: Networks

Usage

Download, extract and from the program folder:

  1. ./network_disturbance_system.py [OPTIONS]

Or:

  1. python2.7 network_disturbance_system.py [OPTIONS]

All the options have usable defaults so check them before running an experiment.

Use:

  1. python2.7 network_disturbance_system.py -h

Results

The results of each experiment are printed on the screen after you run the experiment.

The results of the coupling measure is in a csv file with the name of the according network.

Options

  1. arguments:
  2. -h, --help shows help message and exit
  3. -f FILE The network file. (default: None)
  4. -i ITERATIONS, --iterations ITERATIONS Number of iterations (MSA). (default: 1000)
  5. -c CHANGES, --changes CHANGES Number of changes in the network. (default: 1)
  6. -k K, Number of routes for KSP algorithm. (default: 8)
  7. -ce COMPLEMENTARY_EDGES, If it is to change both direction of the edge. (default: False)
  8. -jr, --just_remove If it is only to remove edges and not add any afterwards. (default: False)
  9. -e EDGE, --edge EDGE Specific edge to change (CASE SENSITIVE). (default: '')
  10. -re RANKED_EDGES, --ranked_edges RANKED_EDGES Number of top edges to not remove (random removing/changing). (default: 0)