Glossary termMathematical field

Graph Theory

Branch of mathematics that studies networks of nodes connected by edges, used to model relationships from road maps to social networks.

Graph theory studies graphs: mathematical structures made of vertices, also called nodes, and edges that connect pairs of them. The vertices might represent cities and the edges roads, or people and their friendships, or web pages and the links between them. Edges can be directed, like one-way streets or follows on social media, and can carry weights, such as distances or costs. Graph theory asks questions about these structures: whether a path exists between two points, what the shortest route is, how many colors are needed to color a map or which nodes are most central.

The field is usually traced to Leonhard Euler's 1736 solution of the Seven Bridges of Konigsberg problem, in which he proved that no walk could cross each of the city's seven bridges exactly once, reasoning only about how the land masses were connected. Graph theory grew through the 19th and 20th centuries and became central to computer science. Edsger Dijkstra's shortest-path algorithm, published in 1959, underpins route planning, and the four color theorem, proved in 1976 by Kenneth Appel and Wolfgang Haken with extensive computer assistance, became a landmark in computer-assisted proof.

Graphs model a large share of computing problems. Network routing, dependency resolution in package managers, recommendation systems, fraud detection and the PageRank algorithm behind Google's early search ranking all rest on graph algorithms. Knowledge graphs and graph databases store information as linked entities, and link analysis in investigations maps relationships between people and organizations. The study of large real-world networks, from the web to social media, reveals recurring patterns such as small-world structure and highly connected hubs that help explain the network effect.

Key points

  • A graph consists of vertices connected by edges, which may be directed or weighted.
  • Leonhard Euler's 1736 analysis of the bridges of Konigsberg is usually seen as the field's starting point.
  • Shortest-path, search and ranking algorithms on graphs underpin navigation, networking and web search.
  • Real-world networks often show small-world structure and highly connected hubs.

Related entries

Glossary term

Data Structure

Programming

Way of organizing and storing data in a computer so that it can be accessed and modified efficiently, such as an array, list, tree or hash table.

Glossary term

Hierarchical data structure of nodes connected by edges, with a single root and no cycles, used for file systems, indexes and parsers.

Glossary term

Algorithm

ProgrammingAI

Finite sequence of well-defined steps for solving a problem or performing a computation, such as sorting a list or finding a route.

Glossary term

Knowledge Graph

AIProgramming

Structured representation of knowledge as a network of entities and the relationships between them, used for search, reasoning and data integration.

Glossary term

Analytical technique that represents people, organizations, places, events and objects as connected nodes to reveal relationships and patterns.

Glossary term

Network Effect

Ideas and Culture

Phenomenon in which a product or service becomes more valuable to each user as more people use it, as with telephones or social networks.

Person

Edsger Dijkstra

Programming

Dutch computer scientist known for his shortest path algorithm, structured programming and foundational work on concurrency and program correctness.

Glossary term

Complex Systems

Ideas and Culture

Systems made of many interacting components whose collective behavior is nonlinear, adaptive and hard to predict from the parts alone.

Referenced by

Other entries that discuss or point to Graph Theory.