This allows building tools that simplify Blender core development. The depsgraph already exposed the dot graph using the `debug_relations_graphviz` method. This has been extended to return the data as a string. The filepath is optional now. Similar functions have been added for node trees. Note that these should be used on evaluated node trees.