reduced the redundant code in reduce [refs #255]
reduced the redundant code in reduce [refs #255]
palashahuja/pgmpy,yashu-seth/pgmpy,anaviltripathi/pgmpy,liquidmetal/pgmpy,palashahuja/pgmpy,pgmpy/pgmpy,jhonatanoliveira/pgmpy,kris-singh/pgmpy,kris-singh/pgmpy,sandeepkrjha/pgmpy,ankurankan/pgmpy,ankurankan/pgmpy,abinashpanda/pgmpy,yashu-seth/pgmpy,liquidmetal/pgmpy,vivek425ster/pgmpy,jhonatanoliveira/pgmpy,khalibartan/pgmpy,abinashpanda/pgmpy,pratyakshs/pgmpy,vivek425ster/pgmpy,anaviltripathi/pgmpy,pratyakshs/pgmpy,sandeepkrjha/pgmpy,khalibartan/pgmpy,pgmpy/pgmpy