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

Method hasEdge

src/main/java/pascal/taie/util/graph/Graph.java:49–49  ·  view source on GitHub ↗

@return true if this graph has an edge from given source to target, otherwise false.

(N source, N target)

Source from the content-addressed store, hash-verified

47 * otherwise {@code false}.
48 */
49 default boolean hasEdge(N source, N target) {
50 return getSuccsOf(source).contains(target);
51 }
52

Callers 5

testSimpleGraphMethod · 0.65
testSimpleGraphCopyMethod · 0.65
testSimpleGraphRemoveMethod · 0.65
collectSCCMethod · 0.65
hasEdgeMethod · 0.65

Calls

no outgoing calls

Tested by 3

testSimpleGraphMethod · 0.52
testSimpleGraphCopyMethod · 0.52
testSimpleGraphRemoveMethod · 0.52