Graph
Graph theory studies graphs, mathematical structures used to model relations between objects. A graph G consists of a set V of vertices and a set E of edges that connect pairs of vertices. In an undirected graph edges have no orientation; in a directed graph, or digraph, edges have a direction indicating a one-way relationship. Edges may be simple, between two distinct vertices with at most one edge between a pair, or may allow parallel edges (multigraphs) and loops (edges from a vertex to itself), creating pseudographs.
Graphs can be weighted, with each edge assigned a numerical value such as distance or cost. Common
Key concepts include the degree of a vertex (for undirected graphs, the number of incident edges; for
Special families include complete graphs, bipartite graphs, regular graphs, and sparse or dense graphs. Graphs have