ag[?] [options]
output Graphviz code
Tips
-
Dependencies include
xdot
. To install,sudo apt install xdot
-
To print a grapviz,
use a[options] | xdot -
. Example:ag $$ | xdot -
.$$
means here (at current seek).agv
does the same thing. -
ag
supports autocompletion
-
agg
display current graph created with agn and age (see also ag-) agf [addr]
Show ASCII art graph of given function-
After setting
scr.html
to true,agf
can be used to export a visual graph to html.
-
agfl
-
agg[?] [kdi*]
Print graph in ASCII-Art, graphviz, k=v, r2 or visual -
Graph commands:
agc[format] [fcn addr]
Function callgraphagf[format] [fcn addr]
Basic blocks function graphagfd
?-
Use
agfd
with viz-js library to render an SVG
-
agx[format] [addr]
Cross references graphagr[format] [fcn addr]
References graphaga[format] [fcn addr]
Data references graphagd[format] [fcn addr]
Diff graphagi[format]
Imports graphagC[format]
Global callgraphagR[format]
Global references graphagA[format]
Global data references graphagg[format]
Custom graphag-
Clear the custom graphagn[?] title body
Add a node to the custom graphage[?] title1 title2
Add an edge to the custom graph
- Output formats:
- <blank> Ascii art
- v Interactive ascii art
- t Tiny ascii art
- d Graphviz dot
- j json ('J' for formatted disassembly)
- g Graph Modelling Language (gml)
- k SDB key-value
- * r2 commands
- w Web/image (see graph.extension and graph.web)
ag ag- aga agr agc agC agd age agf agg agj agk agl agn ags agt agv xdot agc agf agx agr aga agd agi agC agR agA agg ag- agn age agfd