You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
Right now there's very little documentation on how to use the NetworkX di-graph from angr. The current example in /docs/analyses/cfg.md that suggests print "This is the graph:", cfg.graph seems to print nothing.
Just using networkx.draw(...) will result in a horrible graph like this.
Any suggestions on how I could dump the graph to GraphML or JSON? Using json_graph.dumps(cfg.graph) results in TypeError("G is not a tree.").
The text was updated successfully, but these errors were encountered:
json has no way to reference prior objects, so I don't think you'd be able to dump arbitrary graph structures. If we make the CFG nodes subclasses of ana.Storable, then we could use ANA's json serialization, but that's a bit of a pain to parse.
For graphing in general, check out https://github.com/axt/angr-utils. The graphs that it produces look pretty slick, and you might be able to grab some intermediate result from it for easier conversion to other formats.
Right now there's very little documentation on how to use the NetworkX di-graph from angr. The current example in
/docs/analyses/cfg.md
that suggestsprint "This is the graph:", cfg.graph
seems to print nothing.Just using
networkx.draw(...)
will result in a horrible graph like this.Any suggestions on how I could dump the graph to GraphML or JSON? Using
json_graph.dumps(cfg.graph)
results inTypeError("G is not a tree.")
.The text was updated successfully, but these errors were encountered: