Skip to content
UPEEC

Graphs

Vertices connected by edges — model networks, maps, circuits and dependencies.

Intermediate
Comments 0

A graph G=(V,E)G = (V, E) can be directed or undirected, weighted or unweighted. Stored as:

  • Adjacency list — each vertex lists its neighbours (O(V+E)O(V + E) memory, best for sparse graphs).
  • Adjacency matrix — a V×VV \times V table (O(V2)O(V^2), fast edge checks).

A circuit netlist is a graph (nodes = nets, edges = components) — nodal analysis is graph theory in action.

Sub-topics (3)

Breadth-First Search

Explore a graph level by level using a queue; finds shortest paths in unweighted graphs.

Intermediate♥ 0🔖 0💬 0

Depth-First Search

Explore as deep as possible before backtracking; uses recursion or a stack.

Intermediate♥ 0🔖 0💬 0

Dijkstra's Algorithm

Shortest paths from one source in a graph with non-negative edge weights.

Advanced♥ 0🔖 0💬 0

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.