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

Method addEdge

src/main/java/pascal/taie/util/graph/SimpleGraph.java:68–73  ·  view source on GitHub ↗
(N source, N target)

Source from the content-addressed store, hash-verified

66 }
67
68 public void addEdge(N source, N target) {
69 nodes.add(source);
70 nodes.add(target);
71 preds.put(target, source);
72 succs.put(source, target);
73 }
74
75 /**
76 * Removes a node from this graph.

Callers 5

genRandomGraphMethod · 0.95
readGraphMethod · 0.95
buildMethod · 0.95
SimpleGraphMethod · 0.95
buildDependenceGraphMethod · 0.95

Calls 2

addMethod · 0.65
putMethod · 0.65

Tested by 2

genRandomGraphMethod · 0.76
readGraphMethod · 0.76