We can have road networks of the countries in GIS shape file.For exmple from here. Normally traffic flows are proportionate to populations of the cities.
I wonder how we can have the same in Mathematica?Is it possible at all?
I chose to use the Australian data for patriotic reasons.
Going to the web site you suggested, it is straightforward to get the data for the Australian roads network. On unpacking the resulting ZIP file, there are four files: AUS_roads.dbf, AUS_roads.prj, AUS_roads.shp and AUS_roads.shx. Mathematica supports .shp import, so it is a simple matter of doing the following:
The underlying data does not seem to include traffic flow data so I will have to make up the next bit. You would need to translate the underlying
What I'm doing here is picking out the pieces of the graphic that represent the red lines’ coordinates; I looked at the
There are about a quarter of a million pairs of coordinates, so here is a small sample:
It should be possible to respecify this as a
Here is an example where I only showed the first 101 points. Note the use of the undirected edge symbol. You could alternatively just turn off arrow heads.
To get some ideas on how to get varying edge thicknesses, have a look at the answers to this question.