Added function to generate IPC graph