tools/android/dependency_analysis/serialization.py
def load_class_and_package_graphs_from_file(
        filename: str
) -> Tuple[class_dependency.JavaClassDependencyGraph, package_dependency.
           JavaPackageDependencyGraph, Dict]:
    """Recreates a Java(Class+Package)DependencyGraph from a JSON file.

    The file is expected to be in the format dumped by
    `dump_class_and_package_graphs_to_file`.

    Note that we construct the package graph from the deserialized class graph,
    not using the serialized package graph at all. This aligns with how we
    construct the package graph when using jdeps. However, we still output
    a serialized package graph for other consumers of the JSON (eg. JS-side)
    which may want to bypass the costly conversion from class to package graph.
    """
    class_graph, metadata = load_class_graph_from_file(filename)
    package_graph = package_dependency.JavaPackageDependencyGraph(class_graph)
    return class_graph, package_graph, metadata
Recreates a Java(Class+Package)DependencyGraph from a JSON file.

    The file is expected to be in the format dumped by
    `dump_class_and_package_graphs_to_file`.

    Note that we construct the package graph from the deserialized class graph,
    not using the serialized package graph at all. This aligns with how we
    construct the package graph when using jdeps. However, we still output
    a serialized package graph for other consumers of the JSON (eg. JS-side)
    which may want to bypass the costly conversion from class to package graph.
    
Recreates a Java(Class+Package)DependencyGraph from a JSON file.
The file is expected to be in the format dumped by
`dump_class_and_package_graphs_to_file`.

Note that we construct the package graph from the deserialized class graph,
not using the serialized package graph at all. This aligns with how we
construct the package graph when using jdeps. However, we still output
a serialized package graph for other consumers of the JSON
which may want to bypass the costly conversion from class to package graph.
Recreates a Java ( Class + Package ) DependencyGraph from a JSON file . The file is expected to be in the format dumped by ` dump_class_and_package_graphs_to_file ` . Note that we construct the package graph from the deserialized class graph not using the serialized package graph at all . This aligns with how we construct the package graph when using jdeps . However we still output a serialized package graph for other consumers of the JSON which may want to bypass the costly conversion from class to package graph .
def load_class_and_package_graphs_from_file(
        filename: str
) -> Tuple[class_dependency.JavaClassDependencyGraph, package_dependency.
           JavaPackageDependencyGraph, Dict]:
    class_graph, metadata = load_class_graph_from_file(filename)
    package_graph = package_dependency.JavaPackageDependencyGraph(class_graph)
    return class_graph, package_graph, metadata
def load_class_and_package_graphs_from_file ( filename : str ) -> Tuple [ class_dependency . JavaClassDependencyGraph , package_dependency . JavaPackageDependencyGraph , Dict ] : class_graph , metadata = load_class_graph_from_file ( filename ) package_graph = package_dependency . JavaPackageDependencyGraph ( class_graph ) return class_graph , package_graph , metadata
Recreates a Java(Class+Package)DependencyGraph from a JSON file.
Recreates a Java ( Class + Package ) DependencyGraph from a JSON file .
"""Recreates a Java(Class+Package)DependencyGraph from a JSON file.

    The file is expected to be in the format dumped by
    `dump_class_and_package_graphs_to_file`.

    Note that we construct the package graph from the deserialized class graph,
    not using the serialized package graph at all. This aligns with how we
    construct the package graph when using jdeps. However, we still output
    a serialized package graph for other consumers of the JSON (eg. JS-side)
    which may want to bypass the costly conversion from class to package graph.
    """
filename
str