add subgraph visualization method