scitools.com

← Metric catalog

Knots is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Knots

API ID: Knots
Languages: Ada, C#, C++, Java, Rust
Targets: Functions, Packages, Subprograms

Measure of overlapping jumps.

If a piece of code has arrowed lines indicating where every jump in the flow of control occurs, a knot is defined as where two such lines cross each other. The number of knots is proportional to the complexity of the control flow.


Targets By Language: Configuration: