grafstrukturen
Grafstrukturen refers to the study of graphs in mathematics and computer science. A graph consists of a set of vertices (also called nodes) and a set of edges that connect pairs of vertices. Edges may be undirected, meaning a connection has no direction, or directed (arcs), in which case each edge has a source and a target. Graphs can be represented in memory by an adjacency matrix or an adjacency list, and they provide a convenient abstraction for modeling relationships and interactions in many systems.
Common graph types include simple graphs (no loops or multiple edges), multigraphs (allowing parallel edges), weighted
Key concepts include degree (number of incident edges), path (a sequence of edges connecting vertices), cycle
Graph algorithms address many problems, such as finding shortest paths (Dijkstra, Bellman-Ford), traversing graphs (breadth-first and