microsoft / PowerBI-visuals-ForceGraph
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 36 units with 801 lines of code in units (69.3% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (141 lines of code)
    • 5 medium complex units (297 lines of code)
    • 6 simple units (154 lines of code)
    • 24 very simple units (209 lines of code)
0% | 17% | 37% | 19% | 26%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
ts0% | 17% | 37% | 19% | 26%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 17% | 37% | 19% | 26%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
141 33 4
private setVisualData()
in src/visual.ts
156 21 3
private isIntersect()
in src/visual.ts
29 18 2
20 15 1
private fadeNode()
in src/visual.ts
40 14 1
private getForceTick()
in src/visual.ts
52 11 0
private isReachable()
in src/visual.ts
28 10 2
public update()
in src/visual.ts
44 8 1
public static getColumnByRoleName()
in src/tooltipsFactory.ts
12 7 2
public static build()
in src/tooltipsFactory.ts
27 6 2
private getLinkColor()
in src/visual.ts
22 6 3
private fadePath()
in src/visual.ts
21 6 3
6 5 1
5 3 2
private get settings()
in src/visual.ts
3 2 0
private get margin()
in src/visual.ts
3 2 0
private get viewport()
in src/visual.ts
3 2 0
private get viewportIn()
in src/visual.ts
3 2 0
24 2 2
private reset()
in src/visual.ts
10 2 0