pipasic_src/inspect/PyInspect/PyInspect.c
// Load InteractiveBN from file; return node count
Load InteractiveBN from file; return node count
Load InteractiveBN from file ; return node count
PyObject* PyLoadBNModel(PyObject* self, PyObject* args)
{
    char* FileName;
    if (!PyArg_ParseTuple(args, "s", &FileName))
    {
        return NULL;
    }
    FreePRMBayesianModel(InteractiveBN);
    InteractiveBN = LoadPRMBayesianModel(FileName);
    if (!InteractiveBN)
    {
        return PyInt_FromLong(-1);
    }
    return PyInt_FromLong(InteractiveBN->NodeCount);
}
PyObject * PyLoadBNModel ( PyObject * self , PyObject * args ) { char * FileName ; if ( ! PyArg_ParseTuple ( args , " " , & FileName ) ) { return NULL ; } FreePRMBayesianModel ( InteractiveBN ) ; InteractiveBN = LoadPRMBayesianModel ( FileName ) ; if ( ! InteractiveBN ) { return PyInt_FromLong ( -1 ) ; } return PyInt_FromLong ( InteractiveBN -> NodeCount ) ; }
Load InteractiveBN from file; return node count
Load InteractiveBN from file ; return node count