tools/android/dependency_analysis/serialization.py
def load_class_graph_from_file(
        filename: str
) -> Tuple[class_dependency.JavaClassDependencyGraph, Dict]:
    """Recreates a JavaClassDependencyGraph from a JSON file.

    The file is expected to be in the format dumped by
    `dump_package_graph_to_file`.
    """
    with open(filename, 'r') as json_file:
        json_obj = json.load(json_file)
        class_graph_json_obj = json_obj[json_consts.CLASS_GRAPH]
        return create_class_graph_from_json_obj(
            class_graph_json_obj), json_obj.get(json_consts.BUILD_METADATA)
Recreates a JavaClassDependencyGraph from a JSON file.

    The file is expected to be in the format dumped by
    `dump_package_graph_to_file`.
    
Recreates a JavaClassDependencyGraph from a JSON file.
The file is expected to be in the format dumped by
`dump_package_graph_to_file`.
Recreates a JavaClassDependencyGraph from a JSON file . The file is expected to be in the format dumped by ` dump_package_graph_to_file ` .
def load_class_graph_from_file(
        filename: str
) -> Tuple[class_dependency.JavaClassDependencyGraph, Dict]:
    with open(filename, 'r') as json_file:
        json_obj = json.load(json_file)
        class_graph_json_obj = json_obj[json_consts.CLASS_GRAPH]
        return create_class_graph_from_json_obj(
            class_graph_json_obj), json_obj.get(json_consts.BUILD_METADATA)
def load_class_graph_from_file ( filename : str ) -> Tuple [ class_dependency . JavaClassDependencyGraph , Dict ] : with open ( filename , 'r' ) as json_file : json_obj = json . load ( json_file ) class_graph_json_obj = json_obj [ json_consts . CLASS_GRAPH ] return create_class_graph_from_json_obj ( class_graph_json_obj ) , json_obj . get ( json_consts . BUILD_METADATA )
Recreates a JavaClassDependencyGraph from a JSON file.
Recreates a JavaClassDependencyGraph from a JSON file .
"""Recreates a JavaClassDependencyGraph from a JSON file.

    The file is expected to be in the format dumped by
    `dump_package_graph_to_file`.
    """
filename
str