Call graph
A call graph (also known as a call multigraph ) is a directed graph that represents calling relationships between subroutines in a computer program. Each node represents a procedure and each edge (f, g) indicates that procedure f calls procedure g. Thus, a cycle in the graph indicates recursive procedure calls.
A call graph (also known as a call multigraph ) is a directed graph that represents calling relationships between subroutines in a computer program. Each node represents a procedure and each edge (f, g) indicates that procedure f calls procedure g. Thus, a cycle in the graph indicates recursive procedure calls. CCTree: Native Vim plugin that can display static call graphs by reading a cscope database. Works for C programs. codeviz: a static call graph generator (the program is not run). Implemented as a patch to gcc; works for C and C++ programs. calltree.sh: Bash shell functions that glue together cscope, graphviz, and a sampling of dot-rendering tools to display "caller" and "callee" relationships above, below, and/or between the C functions you specify. tceetree: like calltree.sh, it connects Cscope and Graphviz, but it is an executable rather than a bash script. Go go-callvis: an interactive call graph generator for Go programs whose output can be drawn with Graphviz Multi-language callGraph: open-source call graph generator for AWK, Bash, BASIC, Dart, Fortran, Go, Lua, JavaScript, Julia, Kotlin, MATLAB, Perl, Pascal, PHP, Python, R, Raku, Ruby, Rust, Scala, Swift, TCL, and TypeScript. .NET NDepend:is a static analysis tool for .NET code. This tool supports a large number of code metrics, allows for visualization of dependencies using directed graphs and dependency matrix. PHP, Perl and Python Devel::NYTProf: a Perl performance analyser and call chart generator phpCallGraph: a call graph generator for PHP programs that uses Graphviz. It is written in PHP and requires at least PHP 5.2. pycallgraph : a call graph generator for Python programs that uses Graphviz. pyan: a static call graph generator for Python programs that uses Graphviz. gprof2dot: A call graph generator written in Python that converts profiling data for many languages/runtimes to a Graphviz callgraph. code2flow: A call graph generator for Python and JavaScript programs that uses Graphviz rcviz: Python module for rendering runtime-generated call graphs with Graphviz. Each node represents an invocation of a function with the parameters passed to it and the return value. XQuery XQuery Call Graphs from the XQuery Wikibook: A call graph generator for an XQuery function module that uses Graphviz ==Sample graph== A sample call graph generated from gprof analyzing itself: index called name |index called name 72384/72384 sym_id_parse [54] | 1508/1508 cg_dfn [15] [3] 72384 match [3] |[13] 1508 pre_visit [13] ---------------------- |---------------------- 4/9052 cg_tally [32] | 1508/1508 cg_assemble [38] 3016/9052 hist_print [49] |[14] 1508 propagate_time [14] 6032/9052 propagate_flags [52] |---------------------- [4] 9052 sym_lookup [4] | 2 cg_dfn [15] ---------------------- | 1507/1507 cg_assemble [38] 5766/5766 core_create_function_syms [41]|[15] 1507+2 cg_dfn [15] [5] 5766 core_sym_class [5] | 1509/1509 is_numbered [9] ---------------------- | 1508/1508 is_busy [11] 24/1537 parse_spec [19] | 1508/1508 pre_visit [13] 1513/1537 core_create_function_syms [41]| 1508/1508 post_visit [12] [6] 1537 sym_init [6] | 2 cg_dfn [15] ---------------------- |---------------------- 1511/1511 core_create_function_syms [41]| 1505/1505 hist_print [49] [7] 1511 get_src_info [7] |[16] 1505 print_line [16] ---------------------- | 2/9 print_name_only [25] 2/1510 arc_add [31] |---------------------- 1508/1510 cg_assemble [38] | 1430/1430 core_create_function_syms [41] [8] 1510 arc_lookup [8] |[17] 1430 source_file_lookup_path [17] ---------------------- |---------------------- 1509/1509 cg_dfn [15] | 24/24 sym_id_parse [54] [9] 1509 is_numbered [9] |[18] 24 parse_id [18] ---------------------- | 24/24 parse_spec [19] 1508/1508 propagate_flags [52] |---------------------- [10] 1508 inherit_flags [10] | 24/24 parse_id [18] ---------------------- |[19] 24 parse_spec [19] 1508/1508 cg_dfn [15] | 24/1537 sym_init [6] [11] 1508 is_busy [11] |---------------------- ---------------------- | 24/24 main [1210] 1508/1508 cg_dfn [15] |[20] 24 sym_id_add [20] [12] 1508 post_visit [12] | ==See also== Software visualization Dependency graph ==References==
References
- Constructing the procedure call multigraph · retrieved 2026-11-17 · rev 1371796881
Cite this reference
MLA "Constructing the procedure call multigraph." Callahan, D. 2026-11-17. https://en.wikipedia.org/wiki/Mary_Hall_(computer_scientist). Accessed 24 November 2026.
Chicago "Constructing the procedure call multigraph." Callahan, D. 2026-11-17. https://en.wikipedia.org/wiki/Mary_Hall_(computer_scientist).
APA Callahan, D. (2026). Constructing the procedure call multigraph. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Mary_Hall_(computer_scientist)
- Constructing the Call Graph of a Program · retrieved 2026-11-17 · rev 1371796881
Cite this reference
MLA "Constructing the Call Graph of a Program." Ryder, B. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Constructing the Call Graph of a Program." Ryder, B. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Ryder, B. (2026). Constructing the Call Graph of a Program. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Aiding program comprehension by static and dynamic feature analysis · retrieved 2026-11-17 · rev 1371796881
Cite this reference
MLA "Aiding program comprehension by static and dynamic feature analysis." Eisenbarth, T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.
Chicago "Aiding program comprehension by static and dynamic feature analysis." Eisenbarth, T. 2026-11-17. https://en.wikipedia.org/wiki/Doi_(identifier).
APA Eisenbarth, T. (2026). Aiding program comprehension by static and dynamic feature analysis. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)
- Gray-box extraction of execution graphs for anomaly detection · retrieved 2026-11-17 · rev 1371796881
Cite this reference
MLA "Gray-box extraction of execution graphs for anomaly detection." Gao, Debin; Reiter, Michael K. 2026-11-17. https://figshare.com/articles/journal_contribution/6468845. Accessed 24 November 2026.
Chicago "Gray-box extraction of execution graphs for anomaly detection." Gao, Debin; Reiter, Michael K. 2026-11-17. https://figshare.com/articles/journal_contribution/6468845.
APA Gao, Debin; Reiter, Michael K. (2026). Gray-box extraction of execution graphs for anomaly detection. Retrieved November 24, 2026, from https://figshare.com/articles/journal_contribution/6468845
- Call graph construction in object-oriented languages · retrieved 2026-11-17 · rev 1371796881
Cite this reference
MLA "Call graph construction in object-oriented languages." a b Grove, David; DeFouw, Greg; Dean, Jeffrey; Chambers, Craig; Grove, David; DeFouw, Greg; Dean, Jeffrey; Chambers, Cra. 2026-11-17. https://doi.org/10.1145%2F263700.264352. Accessed 24 November 2026.
Chicago "Call graph construction in object-oriented languages." a b Grove, David; DeFouw, Greg; Dean, Jeffrey; Chambers, Craig; Grove, David; DeFouw, Greg; Dean, Jeffrey; Chambers, Cra. 2026-11-17. https://doi.org/10.1145%2F263700.264352.
APA a b Grove, David; DeFouw, Greg; Dean, Jeffrey; Chambers, Craig; Grove, David; DeFouw, Greg; Dean, Jeffrey; Chambers, Cra. (2026). Call graph construction in object-oriented languages. Retrieved November 24, 2026, from https://doi.org/10.1145%2F263700.264352
- Uday Khedker; Amitabha Sanyal; Bageshri Sathe (2009). Data Flow Analysis: Theory and Practice . CRC Press. p. 234. ISBN 978-0-8493-3251-7 . Wikipedia revision 1371796881, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1371796881
Cite this reference
MLA "Uday Khedker; Amitabha Sanyal; Bageshri Sathe (2009). Data Flow Analysis: Theory and Practice . CRC Press. p. 234. ISBN 978-0-8493-3251-7 . Wikipedia revision 1371796881, retrieved 2026-11-18." Uday Khedker; Amitabha Sanyal; Bageshri Sathe (2009). 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Uday Khedker; Amitabha Sanyal; Bageshri Sathe (2009). Data Flow Analysis: Theory and Practice . CRC Press. p. 234. ISBN 978-0-8493-3251-7 . Wikipedia revision 1371796881, retrieved 2026-11-18." Uday Khedker; Amitabha Sanyal; Bageshri Sathe (2009). 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Uday Khedker; Amitabha Sanyal; Bageshri Sathe (2009). (2026). Uday Khedker; Amitabha Sanyal; Bageshri Sathe (2009). Data Flow Analysis: Theory and Practice . CRC Press. p. 234. ISBN 978-0-8493-3251-7 . Wikipedia revision 1371796881, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
Cite this article
MLA
"Call graph." encyclopegia.org, 2026, https://encyclopegia.org/wiki/call-graph. Accessed 24 November 2026.
Chicago
"Call graph." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/call-graph.
APA
encyclopegia.org. (2026). Call graph. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/call-graph
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON