for(Edge ed:tempArcs){
if (ed.getDestinationNode().getType()==Node.CONTINUOUS_NODE_TYPE)
makeDecomposition(start,ed.getDestinationNode(),true);
else if (ed.getDestinationNode().getType()==Node.PROBABILISTIC_NODE_TYPE && hasCont==true){
// add the edge between start and destination node
Edge temp = new Edge(start,ed.getDestinationNode());
if(ifContainsedge(arcosMarkov,temp) || ifContainsedge(edgeList,temp) )
System.out.println("Arc already exists and hence wont be added \n");
else{
arcosMarkov.add(temp);
// set the adjacent nodes
ArrayList<Node> n = new ArrayList<Node>();
n= temp.getOriginNode().getAdjacents();
n.add(temp.getDestinationNode());
n=temp.getDestinationNode().getAdjacents();
n.add(temp.getOriginNode());
System.out.println(temp.toString()+" has been added to set of arcs \n");
}
}
else if (ed.getDestinationNode().getType()==Node.PROBABILISTIC_NODE_TYPE) return;
}
}