public DataFrame toDataFrame(JavaSparkContext jsc,DependencyGraph graph,FeatureFrame featureFrame){
  List<ParsingContext> list=TransitionDecoder.decode(graph,featureFrame);
  JavaRDD<ParsingContext> javaRDD=jsc.parallelize(list);
  return sqlContext.createDataFrame(javaRDD,ParsingContext.class);
}

public DataFrame toDataFrame ( JavaSparkContext jsc , DependencyGraph graph , FeatureFrame featureFrame ) { List < ParsingContext > list = TransitionDecoder . decode ( graph , featureFrame ) ; JavaRDD < ParsingContext > javaRDD = jsc . parallelize ( list ) ; return sqlContext . createDataFrame ( javaRDD , ParsingContext . class ) ; }
converts a dependency graph to a data frame .
