Networks play a pivotal role in the modern world, serving as the backbone of communication, information exchange, and global connectivity.…