sympy/sympy — pull request #2059 by shravas (2013-05-01 02:11:15+00:00)
Title: Implement prev_lexicographic and next_lexicographic

Implemented the functions prev_lexicographic and next_lexicographic in sympy/combinatorics/subsets, and added tests.