Add function to extract cortex-only graph.