A magnetic resonance imaging apparatus according to an embodiment includes processing circuitry. The processing circuitry is configured to specify a search start position of a matrix representing inter-regional connectivity between a plurality of regions in a brain based on a result of an analysis on an image of a subject and an attention degree set to each of the regions. The processing circuitry is configured to search the matrix using the search start position.