├── .github ├── scripts │ └── build.sh └── workflows │ └── build.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── examples ├── __init__.py ├── control_flow_example.py ├── cyclomatic_complexity_example.py └── program_graph_example.py ├── python_graphs ├── __init__.py ├── analysis │ ├── __init__.py │ ├── program_graph_analysis.py │ ├── program_graph_analysis_test.py │ └── run_program_graph_analysis.py ├── control_flow.py ├── control_flow_graphviz.py ├── control_flow_graphviz_test.py ├── control_flow_test.py ├── control_flow_test_components.py ├── control_flow_visualizer.py ├── cyclomatic_complexity.py ├── cyclomatic_complexity_test.py ├── data_flow.py ├── data_flow_test.py ├── instruction.py ├── instruction_test.py ├── program_graph.py ├── program_graph_dataclasses.py ├── program_graph_graphviz.py ├── program_graph_graphviz_test.py ├── program_graph_test.py ├── program_graph_test_components.py ├── program_graph_visualizer.py ├── program_utils.py └── unparser_patch.py ├── requirements.txt └── setup.py /.github/scripts/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/.github/scripts/build.sh -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/README.md -------------------------------------------------------------------------------- /examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/control_flow_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/examples/control_flow_example.py -------------------------------------------------------------------------------- /examples/cyclomatic_complexity_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/examples/cyclomatic_complexity_example.py -------------------------------------------------------------------------------- /examples/program_graph_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/examples/program_graph_example.py -------------------------------------------------------------------------------- /python_graphs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_graphs/analysis/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python_graphs/analysis/program_graph_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/analysis/program_graph_analysis.py -------------------------------------------------------------------------------- /python_graphs/analysis/program_graph_analysis_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/analysis/program_graph_analysis_test.py -------------------------------------------------------------------------------- /python_graphs/analysis/run_program_graph_analysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/analysis/run_program_graph_analysis.py -------------------------------------------------------------------------------- /python_graphs/control_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/control_flow.py -------------------------------------------------------------------------------- /python_graphs/control_flow_graphviz.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/control_flow_graphviz.py -------------------------------------------------------------------------------- /python_graphs/control_flow_graphviz_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/control_flow_graphviz_test.py -------------------------------------------------------------------------------- /python_graphs/control_flow_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/control_flow_test.py -------------------------------------------------------------------------------- /python_graphs/control_flow_test_components.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/control_flow_test_components.py -------------------------------------------------------------------------------- /python_graphs/control_flow_visualizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/control_flow_visualizer.py -------------------------------------------------------------------------------- /python_graphs/cyclomatic_complexity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/cyclomatic_complexity.py -------------------------------------------------------------------------------- /python_graphs/cyclomatic_complexity_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/cyclomatic_complexity_test.py -------------------------------------------------------------------------------- /python_graphs/data_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/data_flow.py -------------------------------------------------------------------------------- /python_graphs/data_flow_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/data_flow_test.py -------------------------------------------------------------------------------- /python_graphs/instruction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/instruction.py -------------------------------------------------------------------------------- /python_graphs/instruction_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/instruction_test.py -------------------------------------------------------------------------------- /python_graphs/program_graph.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_graph.py -------------------------------------------------------------------------------- /python_graphs/program_graph_dataclasses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_graph_dataclasses.py -------------------------------------------------------------------------------- /python_graphs/program_graph_graphviz.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_graph_graphviz.py -------------------------------------------------------------------------------- /python_graphs/program_graph_graphviz_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_graph_graphviz_test.py -------------------------------------------------------------------------------- /python_graphs/program_graph_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_graph_test.py -------------------------------------------------------------------------------- /python_graphs/program_graph_test_components.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_graph_test_components.py -------------------------------------------------------------------------------- /python_graphs/program_graph_visualizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_graph_visualizer.py -------------------------------------------------------------------------------- /python_graphs/program_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/program_utils.py -------------------------------------------------------------------------------- /python_graphs/unparser_patch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/python_graphs/unparser_patch.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | . 2 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/google-research/python-graphs/HEAD/setup.py --------------------------------------------------------------------------------