GraphNode<BayesVariable> node = entry.getValue();
BayesVariable var = node.getContent();
if ( var.getGiven() != null && var.getGiven().length > 0 ) {
for ( String given : var.getGiven() ) {
GraphNode<BayesVariable> givenNode = map.get( given );
EdgeImpl e = new EdgeImpl();
e.setOutGraphNode(givenNode);
e.setInGraphNode(node);
}
}
}
return graph;