Article 63HS1 Graphing Japanese Prefectures

Graphing Japanese Prefectures

by
John
from John D. Cook on (#63HS1)

The two previous posts looked at adjacency networks. The first used examples of US states and Texas counties. The second post made suggestions for using these networks in a classroom. This post is a continuation of the previous post using examples from Japan.

Japan is divided into 8 regions and 47 prefectures. Here is a network diagram of the prefectures in the Kanto prefecture showing which regions border each other. (In this post, border" will be regions share a large enough border that I was able to see the border region on the map I was using. Some regions may share a very small border that I left out.)

kanto.png

This is a good example of why it is convenient in GraphViz to use variable names that are different from labels. I created my graphs using English versions of prefecture names, and checked my work using the English names. Then after debugging my work I changed the label names (but not the connectivity data) to use Japanese names.

To show what this looks like, my GraphViz started out like this

 graph G { layout=sfdp AI [label="Aichi"] AK [label="Akita"] AO [label="Aomori"] ... AO -- AK AO -- IW AK -- IW ...

and ended up like this

 graph G { layout=sfdp AI [label=""] AK [label=""] AO [label=""] ... AO -- AK AO -- IW AK -- IW ...

Here's a graph only showing which prefectures border each other within a region.

japan1.svg

This image is an SVG, so you can rescale it without losing any resolution. Here's the same image as a PDF.

Because this network is effectively several small networks, it would be easy to look at a map and figure out which nodes correspond to which prefectures. (It would be even easier if you could read the labels!)

Note that there are two islands-literal islands, as well as figurative islands in the image above-Hokkaido, which is its own region, and Okinawa, which a prefecture in the Kyushu region.

Here's the graph with all bordering relations, including across regions.

japan2.svg

The image above is also an SVG. And here's the same image as a PDF.

The post Graphing Japanese Prefectures first appeared on John D. Cook.
External Content
Source RSS or Atom Feed
Feed Location http://feeds.feedburner.com/TheEndeavour?format=xml
Feed Title John D. Cook
Feed Link https://www.johndcook.com/blog
Reply 0 comments