* Find the transitive closure edges of the input graph and add them to the output grph
*/
Graph graphTransitive = ((Graph)this.m_graph2Listen).getTransitiveClosureGraph();
for(TestbedEdge edge : (Set<TestbedEdge>)graphTransitive.edgeSet())
{
Agent src = (Agent)edge.src;
Agent sink = (Agent)edge.sink;
m_graph2Output.addVertex(src);
m_graph2Output.addVertex(sink);
m_graph2Output.addEdge(src, sink);
}
}
else if(outputGraphType == OutputGraphType.COPY_INPUT_GRAPH)
{
/*
* Copy the edges in the input graph to the output graph
*/
Set<TestbedEdge> edges = ((Graph)this.m_graph2Listen).edgeSet();
for(TestbedEdge edge : edges)
{
Agent src = (Agent)edge.src;
Agent sink = (Agent)edge.sink;
m_graph2Output.addVertex(src);
m_graph2Output.addVertex(sink);
m_graph2Output.addEdge(src, sink);
}
}