Add template euler tour method for general situation/