Skip to content

tlehman/cincludegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Author: Tobi Lehman
 Email: tobi.lehman@gmail.com

This program is free software (LICENSE?)

Dependencies:
    argparse (included):
        http://code.google.com/p/argparse/  
    graphviz:
        http://www.graphviz.org

Description: 
Generate a digraph that visually represents C/C++ source file dependencies.
C Include Graph is a program that takes a path to a directory of C/C++ 
source files and outputs a digraph where the nodes are source files, and 
the edges are "includes" relations.

Example: 
    $ incgrph.py <path>
    digraph <path> 
    {
        foo.cpp -> bar.h
        ...
        baz.cpp -> goa.h -> phi.h
    }

Optional: you can feed the -i flag to incgrph.py to output a png file of the digraph.

Goals:
 Simplify usage of program.
 Generalize to other programming languages.

Note: 
To check whether you have it [graphviz] installed, open a terminal and type 
"dot", if you get something other than "command not found" then it is installed.

About

Generate a digraph where nodes are C/C++ source files and edges are "includes" relations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages