@graphty/cytoscape-extensions / io / exportElements
Function: exportElements()
exportElements(
eles,format,options?):Promise<string>
Defined in: cytoscape-extensions/src/io.ts:188
Writes a collection as a graph file: every data field, each node's position and compound parent, and each edge's id, as far as the format holds them (onLoss hears about the rest).
Parameters
eles
Collection
the nodes and the edges between them
format
the format
options?
ExportOptions = {}
graph-io's export options for the format, plus directed
Returns
Promise<string>
the file's text; rejects (a TypeError) when eles is not a collection