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)

Arguments

g

The nctx graph

file

The filename to save the graph to

filetype

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

highlight_path

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

Details

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 https://en.wikipedia.org/wiki/GraphML for further information about the GraphML format and https://en.wikipedia.org/wiki/DOT_(graph_description_language) for more information about the dot format.