Weftmap
Documentation

Reading the diagram

Weftmap draws two diagram types: a call graph for programming languages and an entity-relationship diagram for SQL. This page explains how to read the nodes, edges and controls.

Nodes

  • Module โ€” each file, drawn as a container that groups its functions.
  • Function / method โ€” a definition inside a module or class.
  • Class โ€” groups its methods (in languages with classes).
  • Table โ€” in SQL, an entity with its columns, types and PK/FK keys.

Edges

  • calls โ€” one function calls another (animated line).
  • imports โ€” one module imports another.
  • extends โ€” one class inherits from another.
  • references โ€” in SQL, a foreign key points to another table.

Cardinality (SQL)

Foreign-key edges show their cardinality:

  • 1:N โ€” one row references many (a normal FK).
  • 1:1 โ€” the FK column is unique or is the full primary key.
  • N:M โ€” inferred from a junction table (composite PK of two FKs).

Legend and controls

  • Legend: top-left; click an edge type to hide or show it.
  • Pan & zoom: drag the canvas, scroll to zoom.
  • Fit: the bottom controls reset the view.
Only definitions from your code are drawn. Calls to builtins or external libraries are skipped to keep the graph readable.