Is there any easy way to get a call graph of a binary program using IDApython then convert it to a networkx graph other than going through every function and constructing the call-graph ourselves? considering that IDA does has a nice way of generating call graph itself, the problem is i dont know how to interact with it using iDApython, for example saving it as a networkx graph or checking which nodes are library calls and which are local and such.
i remember IDA had a method to extract the call graph in a weird format and i couldn't convert it to networkx. its important for me to get a networkx graph because many python packages use this format.