Class DepthFirstAdapter