apk dot [<options>...] [pkgmask...]
apk dot renders package dependencies as graphviz graphs.
The graph is generated for the packages matching the masks given, or for every known package if unspecified (this will generate a large and unwieldy graph).
Consider only packages with errors. This is useful for visually reporting e.g. cyclic dependencies and missing packages.
Consider only installed packages.