if (prev.contents instanceof SIRJoiner || prev.contents instanceof SIRJoiner)
if (!(prev.contents instanceof SIRSplitter))
    public static int getCountPrev(HashMap counts, FlatNode prev, FlatNode node)     {	if (prev.contents instanceof SIRJoiner || prev.contents instanceof SIRJoiner)	    return getCount(counts, prev);		//prev is a splitter	int sumWeights = 0;	for (int i = 0; i < prev.ways; i++) 	    sumWeights += prev.weights[i];	int thisWeight = -1;	for (int i = 0; i < prev.ways; i++) {	    if (prev.edges[i].equals(node)) {		thisWeight = prev.weights[i];		break;	    }	}	if (thisWeight == -1)	    Utils.fail("Splitter not connected to node");	double rate = ((double)thisWeight) / ((double)sumWeights);		return ((int)(rate * (double)getCount(counts, prev)));    }