コード例 #1
0
ファイル: highway.py プロジェクト: samitha/commroute
def source_sink_checker():
    net = DataFixer.load("data/jdr_with_state.json")
    net.cache_props()
    print "sources"
    for source in net.sources:
        print source.state.flow
    print "sinks"
    for sink in net.sinks:
        print sink.state.flow
コード例 #2
0
ファイル: highway.py プロジェクト: samitha/commroute
def fixer():
    net = DataFixer.load("data/jdr_with_state.json")
    net.solve_with_state()
    net.dump("data/data_fixed_again.json")