@graphty/cytoscape-extensions / index / SnapshotOptions
Interface: SnapshotOptions
Defined in: cytoscape-extensions/src/snapshot.ts:12
How to read a Cytoscape collection as a graph.
Properties
directed?
readonlyoptionaldirected?:boolean
Defined in: cytoscape-extensions/src/snapshot.ts:14
Build a directed snapshot. Default false.
weight?
readonlyoptionalweight?:string| ((edge) =>number)
Defined in: cytoscape-extensions/src/snapshot.ts:19
The edge weight: an edge data field (a missing or non-numeric value counts as 1), or a function of the edge as Cytoscape's built-in algorithms take it. Default: unweighted. A function result is not cached.