In graph theory, a graph is a mathematical structure used to model relationships between objects. It’s a set of vertices (nodes) connected by edges (lines). Graphs are widely used in computer science, networking, and real-world problem modeling.

Graph in Real Life

Some real-life examples of graphs include:

  • Social Networks: People represent vertices, and the connections (e.g., friendships or followers) represent edges.
  • Transportation Networks: Locations (e.g., cities or train stations) represent vertices, and the roads, train tracks, or flight routes connecting them represent edges.
  • Internet: Websites represent vertices, and the hyperlinks or data connections between them represent edges.

Basic of Graph Theory

Here are the basic concepts in graph theory:

Types of Graphs

There are various types of graphs in graph theory and here is some of them:


πŸ”— Sources

  1. Fundamentals of Graph Theory - GeeksforGeeks