VHRanger / CSRGraph

A tiny library for large graphs
MIT License
115 stars 17 forks source link

dtype determination fix in from_df. #26

Closed jdm365 closed 11 months ago

jdm365 commented 11 months ago

Previous code seems to map dtype to np.uint16 if nnodes is less than UINT32_MAX but greater than UINT16_MAX.

New version sets dtype to np.uint16 and switches to np.uint32 or np.uint64 if nnodes passes the MAX thresholds.