All the information about the DAG generated by Nextflow can be found in this section and in this one of the official Nextflow documentation. I recommend you export as .html to get a cooler DAG (with Mermaid ) and set verbose to false.
But if you want to do something else, more customized, the easier way is to get the dot file, load to some programming language such as R and then you can do anything you want
If you don’t provide any file format, the default is HTML. For example:
nextflow run hello -with-dag filename
filename will be an HTML file. If you pass -with-dag filename.png or -with-dag filename.dot it won’t be an HTML but a PNG or DOT, depending on the extension.