Skip to main content

Discrete Math with SageMath: Learn math with open-source software

Chapter 7 Graph Theory

Sage is extremely powerful for graph theory. This chapter presents the study of graph theory with Sage, starting with a description of the Graph class through the implementation of optimization algorithms. We also illustrate Sage’s graphical capabilities for visualizing graphs.