private void checkSearch(String inputGraph,String outputGraph){
  Graph graph=GraphConverter.convert(inputGraph);
  IndependenceTest independence=new IndTestDSep(graph);
  Pc pc=new Pc(independence);
  Graph resultGraph=pc.search(new FasStableConcurrent(independence),independence.getVariables());
  Graph trueGraph=GraphConverter.convert(outputGraph);
  resultGraph=GraphUtils.replaceNodes(resultGraph,trueGraph.getNodes());
  assertTrue(resultGraph.equals(trueGraph));
}

private void checkSearch ( String inputGraph , String outputGraph ) { Graph graph = GraphConverter . convert ( inputGraph ) ; IndependenceTest independence = new IndTestDSep ( graph ) ; Pc pc = new Pc ( independence ) ; Graph resultGraph = pc . search ( new FasStableConcurrent ( independence ) , independence . getVariables ( ) ) ; Graph trueGraph = GraphConverter . convert ( outputGraph ) ; resultGraph = GraphUtils . replaceNodes ( resultGraph , trueGraph . getNodes ( ) ) ; assertTrue ( resultGraph . equals ( trueGraph ) ) ; }
presents the input graph to fci and checks to make sure the output of fci is equivalent to the given output graph .
