If I may, I believe all this talk of "flying in swarm, having artifical intelligence and choosing which target to attack" is just a big myth, which came about due to some speculative text, and is then reported by everyone including Janes and the authoritative naval weapons guides. On reading some old Russian texts, none of these heavy claims were made. But the Russians did have very advanced targeting systems including combination of aviation, submarine, satellite and OTH targeting means. I have yet to find any serious thing to support these claims of such advanced datalinking and processing.
Similar claims were said on the internet for the Brahmos missile, but in reality Navy did not ask for any of this, nor is it there.