MCPcopy Create free account
hub / github.com/LFYSec/MScan / validate

Method validate

src/main/java/pascal/taie/util/graph/SCC.java:134–137  ·  view source on GitHub ↗

Validates whether the number of nodes in all components is equal to the number of nodes in the given graph.

(Graph<N> graph, List<List<N>> components)

Source from the content-addressed store, hash-verified

132 * equal to the number of nodes in the given graph.
133 */
134 private void validate(Graph<N> graph, List<List<N>> components) {
135 assert graph.getNumberOfNodes() ==
136 components.stream().mapToInt(List::size).sum();
137 }
138}

Callers 1

SCCMethod · 0.95

Calls 3

getNumberOfNodesMethod · 0.80
streamMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected