Counting barrier crossing
Now, that we've looked at the barrier effect using a network-science approach, let's lake a look at how it affects the people living in the city.
Let's focus on the individual trips in the city, and keep track of any barrier crossings (like district boundaries, busy multilane roads, railways, or rivers).
Also, count it if a barrier crossing is also a community crossing.
Check out the figure on the left to see what I mean.
Then, we calculate the fraction of the barrier and the community crosses among all barrier crossings (separately by barrier types of districts, neighborhoods, primary roads, secondary roads, railways, and rivers), and take the inverse of this ratio.
We call this measure, the Barrier Crossing Ratio, which describes that how much a given type of barrier affects to people.
Budapest is divided by the river Danube, so it's an obvious barrier, but not every barrier is supposed to affects everyone the same way.
We've got to do this for different resolution values, because the communities are formed differently at different resolutions, as we saw before.
You might be wondering why this is important.
Well, it gets interesting, when we sort people into different groups and take a look at how a given barrier affects these groups.