// For each object accessed in this task...
for (AccessedObject obj : detail.getAccessedObjects()) {
Object objId = obj.getObjectId();
bipartiteGraph.addVertex(objId);
// We use weighted edges to reduce the total number of edges
WeightedEdge ae = bipartiteGraph.findEdge(owner, objId);
if (ae == null) {
WeightedEdge newEdge = new WeightedEdge();
bipartiteGraph.addEdge(newEdge, owner, objId);
// period info
pruneTask.incrementEdge(newEdge);
} else {
ae.incrementWeight();