implement asmgraph