Beispiel #1
0
def process_chicago_network():
    '''
    prepare .csv files for our algorithm from .txt files available in
    http://www.bgu.ac.il/~bargera/tntp/
    '''
    process_trips('data/ChicagoSketch_trips.txt', 'data/Chicago_od.csv')
    process_net('data/ChicagoSketch_net.txt', 'data/Chicago_net.csv')
    input = 'data/ChicagoSketch_node.csv'
    output = 'data/Chicago_node.csv'
    max_X = -87.110063
    min_X = -88.9242653
    max_Y = 42.711908
    min_Y = 40.946233
    process_node(input, output, min_X, max_X, min_Y, max_Y)
def process_chicago_network():
    """
    prepare .csv files for our algorithm from .txt files available in
    http://www.bgu.ac.il/~bargera/tntp/
    """
    process_trips("data/ChicagoSketch_trips.txt", "data/Chicago_od.csv")
    process_net("data/ChicagoSketch_net.txt", "data/Chicago_net.csv")
    input = "data/ChicagoSketch_node.csv"
    output = "data/Chicago_node.csv"
    max_X = -87.110063
    min_X = -88.9242653
    max_Y = 42.711908
    min_Y = 40.946233
    process_node(input, output, min_X, max_X, min_Y, max_Y)
def process_LA_net():
    process_net('data/LA_net.txt', 'data/LA_net.csv')
Beispiel #4
0
def process_I210_net():
    process_net('data/I210_attack_Sketch_net.csv', 'data/I210_attack_net.csv')
def process_I210_net():
    process_net('data/I210_attack_Sketch_net.csv', 'data/I210_attack_net.csv')
def process_LA_net():
    process_net('data/LA_net.txt', 'data/LA_net.csv')
def process_I210_net():
    process_net('data/I210Sketch_net.csv', 'data/I210_net.csv')
def process_I210_net():
    process_net('data/I210Sketch_net.csv', 'data/I210_net.csv')