Sage implementation of various graph decompositions