AVL tree representation is used to find the connectivity to a communication network