graphs
Graphs are mathematical structures used to model pairwise relations between objects. A graph consists of a set of vertices, or nodes, and a set of edges connecting pairs of vertices. In a directed graph, edges have a direction; in an undirected graph they do not. Edges may be unweighted or weighted. Graphs can be finite or infinite, simple or allow multiple edges (multigraphs) or loops (pseudographs).
Key concepts include the degree of a vertex (in-degree and out-degree in directed graphs). A path is
Algorithms and representations: BFS and DFS explore structure. Shortest-path algorithms such as Dijkstra’s and Bellman–Ford compute
Applications include computer networks, social networks, transportation and logistics, scheduling, and dependency analysis in software and