@graphty/cytoscape-extensions / samples / SampleElements
Interface: SampleElements
Defined in: cytoscape-extensions/src/samples.ts:160
A generated graph or a dataset as Cytoscape element definitions.
Properties
directed
readonlydirected:boolean
Defined in: cytoscape-extensions/src/samples.ts:164
Whether the graph is directed: pass it as directed to the algorithms.
elements
readonlyelements:ElementDefinition[]
Defined in: cytoscape-extensions/src/samples.ts:162
The nodes, then the edges. Node ids are the dataset's names, or "0", "1", ... for a generated graph.