Skip to Main Content
Applying Math with Python - Second Edition
book

Applying Math with Python - Second Edition

by Sam Morley
December 2022
Intermediate to advanced content levelIntermediate to advanced
376 pages
10h 8m
English
Packt Publishing
Content preview from Applying Math with Python - Second Edition

5

Working with Trees and Networks

Networks are objects that contain nodes and edges between pairs of nodes. They can be used to represent a wide variety of real-world situations, such as distribution and scheduling. Mathematically, networks are useful for visualizing combinatorial problems and make for a rich and fascinating theory.

There are, of course, several different kinds of networks. We will mostly deal with simple networks, where edges connect two distinct nodes (so there are no self-loops), there is, at most, one edge between any two nodes, and all the edges are bidirectional. A tree is a special kind of network in which there are no cycles; that is, there are no lists of nodes in which each node is connected to the following node by ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Doing Math with Python

Doing Math with Python

Amit Saha

Publisher Resources

ISBN: 9781804618370Supplemental Content