Skip to content

How do I access the main/function specific flowgraph from the Python API? #2826

Answered by fuzyll
houseofwealth asked this question in API
Discussion options

You must be logged in to vote

Hey, sorry it took so long to get an answer to this.

There's two answers to your question:

  1. If you want to make a change to an existing FlowGraph, you can use the highlight API (https://api.binary.ninja/binaryninja.highlight-module.html?highlight=highlight#module-binaryninja.highlight). But, you cannot change edges using that API on an existing graph.
  2. You can fabricate your own graph (as a new window or view, however you want to do it) like this snippet does: https://gist.github.com/psifertex/6fbc7532f536775194edd26290892ef7#file-flowgraph-py. This gives you full access to customize edges, texture, color, etc.

Generally speaking, if "Core" is in the name, it's probably not intended for p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fuzyll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants