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.