Skip to content

@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? ​

readonly optional directed?: boolean

Defined in: cytoscape-extensions/src/snapshot.ts:14

Build a directed snapshot. Default false.


weight? ​

readonly optional weight?: 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.