putting a sage program inside a loop with out modifying the indentation
asked 2015-09-20 01:39:54 -0600
This post is a wiki. Anyone with karma >750 is welcome to improve it.
I have written a simple program on sage, in which I will define a graph G at the beginning , and the program will return a matrix. now I want the program to return all such matrices corresponds to all trees of order 5. So basically I want to iterate the program over the list of all trees of order 5. But when I doing so, I need to change the indentation of each and every line of the program as I am putting all of them inside a loop. is there any way of getting rid of this problem, my program has more than 50 lines so it looks difficult to change the indentation . one thing I thought was using goto command, but I dont know how to use it.
Any suggestion would be appreciated.
Thanks a lot.