Automatic layout can be a complex thing, but starting to use the Eclipse Layout Kernel can be easy.
Examples of ELK graphs can be found here in the elklive tool, which supports writing ELK graphs in the ELKT and JSON format, can convert between different formats, and allows browsing additional models.
Additionally, the ELK gitter can be used to ask questions.
The elkjs Version is available on npm.
Releases, nightly builds, and release notes are found here.