O'Reilly logo

IPython Interactive Computing and Visualization Cookbook - Second Edition by Cyrille Rossant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Graphs, Geometry, and Geographic Information Systems

In this chapter, we will cover the following topics:

  • Manipulating and visualizing graphs with NetworkX
  • Drawing flight routes with NetworkX
  • Resolving dependencies in a directed acyclic graph with a topological sort
  • Computing connected components in an image
  • Computing the Voronoi diagram of a set of points
  • Manipulating geospatial data with Cartopy
  • Creating a route planner for a road network

Introduction

In this chapter, we will cover Python's capabilities in graph theory, geometry, and geography.

Graphs are mathematical objects describing relations between items. They are ubiquitous in science and engineering, as they can represent many kinds of real-world relations: friends in a social network, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required