Multilayer and dynamic graphs

Often, we use graphs to map very complex relationships. So, suppose we wanted to create a graph for all the modes of transportation and the routes, similar to how Google Maps give us routes that involve buses, trains, cars, planes, or even combinations of them. We could create something like this using a multilayer graph, where nodes represent airports, bus stops, train stations, and other transportation modes, whereas edges represent flights, routes, and so on.

We could just label the edges and nodes to describe what each one represents, but that could turn out quite messy. So, instead, we can use a multilayer graph, where each layer is its own network representing a particular type or class of nodes. These ...

Get Hands-On Mathematics for Deep Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.