Two equivalent knots have isomorphic knot groups, so the knot group is a knot invariant and can be used to distinguish between inequivalent knots. This is because an equivalence between two knots is a self homeomorphism of isotopic to the identity sending the first knot onto the second. Clearly the homeomorphism restricts onto a homeomorphism of the complement of the knot therefore inducing an isomorphism in the fundamental group of the knot complement. However, two knots can have isomorphic knot groups without necessarily being equivalent (see below for an example).