Tags: timcondit/routes
Tags
Cleaning up a mess from trying to do a commit with message.
Major commit. Mostly lots of cleaning up, but also found that mixedmode_compete() is having similar issues to what closestfare_compete() was having with Agents being on the same vertex, etc. But the big news is that this thing is *so* close.
Big commit. The simulation is working with graph data for the first t… …ime! ... self.G.neighbors(fr) => [(-148889574, 63385831), (-148715325, 63335422), (-149017565, 63333637)] self.G.neighbors(to) => [(-148747407, 63335824), (-148752791, 63376683), (-148502867, 63333682)] Name: please work ... Type: XGraph Number of nodes: 1936 Number of edges: 2342 Average degree: 2.4194 Writing generated\images\TGR02068.png ... done networkx.path.shortest_path: [(-149120663, 64286071), (-149085477, 64294082)]
Fuck it. I am so sick and tired of trying to figure out how to use the Decimal class with NetworkX. I can't seem to get the damn things converted to floats with exactly 6 decimal places of precision. I may look at doing approximate matches, but for now I'm done.