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.