write_dot

This commit is contained in:
Costa Shulyupin 2018-07-22 16:19:45 +03:00
parent 2f0b459830
commit cc3fb89ef7
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,7 @@ import collections
import subprocess
import re
import networkx as nx
from networkx.drawing.nx_agraph import write_dot
black_list = ['aligned', '__attribute__', 'unlikely', 'typeof', 'u32',
'PVOP_CALLEE0', 'PVOP_VCALLEE0', 'PVOP_VCALLEE1', 'if',
@ -282,6 +283,12 @@ def syscalls():
return sc
# DiGraph
# write_dot to_agraph AGraph
# agwrite
# srcxray.py 'write_dot(syscalls(), "syscalls.dot")'
def digraph_print(dg):
def digraph_print_sub(node=None, printed=None, level=0):
outs = [_ for _ in dg.successors(node)]