@graphty/graph-io / styles / styleFingerprint
Function: styleFingerprint() ​
styleFingerprint(
snapshot):StyleFingerprint
Defined in: styles/plan/features.ts:106
The fingerprint of a graph: its node and edge counts and a hash of its node ids' text, whatever their order (a format may read nodes back in another order). The id 7 and the id "7" hash alike, so a graph written to a format that reads its ids back as text (or as numbers) keeps its fingerprint.
Parameters ​
snapshot ​
GraphSnapshot
the graph
Returns ​
the fingerprint