If you diagram the method shown in Listing 11 into a flow chart, you can easily count the number of edges and nodes and calculate the cyclomatic complexity, as shown in Figure 1.
如果把清单11所示的方法画成流程图(见图 1),就很容易算出边数和节点数并计算出圈复杂度。
If you diagram the method shown in Listing 11 into a flow chart, you can easily count the number of edges and nodes and calculate the cyclomatic complexity, as shown in Figure 1.
如果把清单11所示的方法画成流程图(见图 1),就很容易算出边数和节点数并计算出圈复杂度。
应用推荐