Set maximum recursivity in graph.text()

Avoid infinite loop.
Add option to change branch before exit
Add option to generate bash completion