code: public FactorGraph readBnAsFg(File networkFile, File cpdFile) throws IOException {      
          return readBnAsFg(new FileInputStream(networkFile), new FileInputStream(cpdFile));
      }
docs: Reads a Bayesian Network from a network file and a CPD file, and returns
  a factor graph representation of it.