The encirclement condition An approach using algebraic topology