Fixes networkx/networkx#966 typo in simple_cycles.

See https://github.com/networkx/networkx/issues/966