def create_legacy_graph_tasks(symbol_table_cls):
 symbol_table_constraint = symbol_table_cls.constraint()
 return [(HydratedTargets, [SelectDependencies(HydratedTarget, Addresses, field_types=(Address,), transitive=True)], HydratedTargets), (HydratedTarget, [Select(symbol_table_constraint), SelectDependencies(HydratedField, symbol_table_constraint, u'field_adaptors', field_types=(SourcesField, BundlesField))], hydrate_target), (HydratedField, [Select(SourcesField), SelectProjection(FilesDigest, PathGlobs, (u'path_globs',), SourcesField), SelectProjection(Files, PathGlobs, (u'excluded_path_globs',), SourcesField)], hydrate_sources), (HydratedField, [Select(BundlesField), SelectDependencies(FilesDigest, BundlesField, u'path_globs_list', field_types=(PathGlobs,)), SelectDependencies(Files, BundlesField, u'excluded_path_globs_list', field_types=(PathGlobs,))], hydrate_bundles)]

def create_legacy_graph_tasks ( symbol_table_cls ) : symbol_table_constraint = symbol_table_cls . constraint ( ) return [ ( HydratedTargets , [ SelectDependencies ( HydratedTarget , Addresses , field_types = ( Address , ) , transitive = True ) ] , HydratedTargets ) , ( HydratedTarget , [ Select ( symbol_table_constraint ) , SelectDependencies ( HydratedField , symbol_table_constraint , u'field_adaptors' , field_types = ( SourcesField , BundlesField ) ) ] , hydrate_target ) , ( HydratedField , [ Select ( SourcesField ) , SelectProjection ( FilesDigest , PathGlobs , ( u'path_globs' , ) , SourcesField ) , SelectProjection ( Files , PathGlobs , ( u'excluded_path_globs' , ) , SourcesField ) ] , hydrate_sources ) , ( HydratedField , [ Select ( BundlesField ) , SelectDependencies ( FilesDigest , BundlesField , u'path_globs_list' , field_types = ( PathGlobs , ) ) , SelectDependencies ( Files , BundlesField , u'excluded_path_globs_list' , field_types = ( PathGlobs , ) ) ] , hydrate_bundles ) ]
create tasks to recursively parse the legacy graph .