An open API service indexing awesome lists of open source software.

https://github.com/pvigier/dependency-graph

A script to draw the dependency of C++ classes.
https://github.com/pvigier/dependency-graph

circular-dependencies graphviz

Last synced: about 2 months ago
JSON representation

A script to draw the dependency of C++ classes.

Awesome Lists containing this project

README

          

# dependency-graph

A python script to show the "include" dependency of C++ classes.

It is useful to check the presence of circular dependencies.

## Installation

The script depends on [Graphviz](https://www.graphviz.org/) to draw the graph.

On Ubuntu, you can install the dependencies with these two commands:

```
sudo apt install graphviz
pip3 install -r requirements.txt
```

## Manual

```
usage: dependency_graph.py [-h] [-f {bmp,gif,jpg,png,pdf,svg}] [-v] [-c]
folder output

positional arguments:
folder Path to the folder to scan
output Path of the output file without the extension

optional arguments:
-h, --help show this help message and exit
-f {bmp,gif,jpg,png,pdf,svg}, --format {bmp,gif,jpg,png,pdf,svg}
Format of the output
-v, --view View the graph
-c, --cluster Create a cluster for each subfolder
```

## Examples

Example of a graph produced by the script:

![Example 1](https://github.com/pvigier/dependency-graph/raw/master/examples/example1.png)

Graph produced for the same project with clusters (`-c`):

![Example 2](https://github.com/pvigier/dependency-graph/raw/master/examples/example2.png)