if(trusts(src, sink))
{
if(!m_graph2Output.containsVertex(src)) m_graph2Output.addVertex(src);
if(!m_graph2Output.containsVertex(sink)) m_graph2Output.addVertex(sink);
//TODO you are not checking. you are simply adding a Trust edge but its probably ok.
TrustEdge te = new TrustEdge(src, sink);
m_graph2Output.addEdge((Agent)te.src, (Agent)te.sink);
edgesToBeUpdated.add(te);
}
}
}