Mapping the Jams: Traffic Analysis Using Graph Theory

<p>Graph theory has plenty of applications in real-life problems such as social networks, molecular biology, or geospatial data. Today, I&rsquo;ll present the last one, analyzing city&rsquo;s road layout to predict critical streets, junctions, and how changes to the infrastructure can affect it. But first, let&rsquo;s start with the basics.</p> <h1>Graphs and their centrality measures</h1> <p>Graphs are sets of vertices and their edges:</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*0-BL4a7R8Rfaxx7Iv5WuHw.png" style="height:54px; width:700px" /></p> <p>Set E is subset of unordered tuples (x, y) where x and y are vertices of the graph and x is not equal to y. [Image by the author]</p> <p>Where the edges represent connections between the nodes. If edges do not have directions, we call a graph undirected. A real-life example of an undirected graph can be a chemical molecule, where the vertices are atoms, and bonds are represented as edges.</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:392/1*evyY_-YJ6bx-qxgh2Rz83w.png" style="height:310px; width:392px" /></p> <p>Serotonin molecule is an example of a simple undirected graph. [<a href="https://commons.wikimedia.org/wiki/File:Serotonin-Spartan-HF-based-on-xtal-3D-balls-web.png" rel="noopener ugc nofollow" target="_blank">source</a>]</p> <p>However, sometimes we need information about whether the edge goes from&nbsp;<em>u&nbsp;</em>to&nbsp;<em>v</em>, from&nbsp;<em>v&nbsp;</em>to&nbsp;<em>u</em>, or both ways. For example, if Mark likes Alice, it doesn&rsquo;t necessarily mean it&rsquo;s mutual &nbsp;In those situations, we can define the edge as an ordered tuple instead of unordered one.</p> <p><a href="https://towardsdatascience.com/mapping-the-jams-traffic-analysis-using-graph-theory-a387135ea748"><strong>Click Here</strong></a></p>
Tags: Traffic Jams