# EulerTourTreeTraversal

### new EulerTourTreeTraversal()

```typescript
/**
 * Creates an instance of EulerTourTreeTraversal.
 *
 * @param callback Function to call on each visited element during traversal.
 * @memberof EulerTourTreeTraversal
 */
constructor(protected callback: (
  element: T,
  meta: IEulerTourMetadata<R>,
  getPosition: () => ExtractPosition<TR>,
  tree: TR,
) => R)
```

Other properties and methods of this class are fully compatible with:

{% content-ref url="preordertreetraversal" %}
[preordertreetraversal](https://alex-myznikov.gitbook.io/adsjs/api/trees/preordertreetraversal)
{% endcontent-ref %}
