d3-dag offers a dagre-compatible wrapper that supports dagre's API while using d3-dag's layout engine under the hood. The Quality preset controls the speed/quality trade-off of the d3-dag renderer. Both panels below render the same graph — the only difference is the layout algorithm.
See the dagre API docs for the full adapter reference.