This saves a nctx graph to a file. When exporting to dot, you can specify a path to be highlighted.

save_graph(g, file, filetype = "graphml", highlight_path = NULL)



The nctx graph


The filename to save the graph to


Choose the filetype of the file. This can be either graphml or dot.


A path that will be highlighted in the output file. Note that this is only considered when exporting to dot


For file formats, dot and GraphML are currently supported. Use GraphML if you wish to export attribute information associated to notes (see also set_vertex_attributes how to associate information to vertices for export).

See for further information about the GraphML format and for more information about the dot format.