@graphty/algorithms / index / isCSRGraph
Function: isCSRGraph() ​
isCSRGraph<
TNodeId>(graph):graph is CSRGraph<TNodeId>
Defined in: optimized/graph-adapter.ts:198
Check if a graph is already in CSR format.
Type Parameters ​
TNodeId ​
TNodeId = NodeId
Parameters ​
graph ​
unknown
The graph to check
Returns ​
graph is CSRGraph<TNodeId>
True if the graph is a CSRGraph instance