The canonical coloring graph of trees and cycles