Re: [graph-tool] Questions about the .gt format

2020-10-16 Thread ddka
Indeed. I was afraid it would be something silly. The off-by-7 thing should have tipped me off. Thanks! -- Sent from: https://nabble.skewed.de/ ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Questions about the .gt format

2020-10-16 Thread ddka
Live example here https://codesandbox.io/s/gt-javascript-nn7k8?file=/src/gt.js Codesandbox seems a bit flaky, but it appears to be working For speed: I'm mostly thinking about the file compression, not the parse speed. But, anyway, I could use WASM in the end and I'm sure it will be much better

Re: [graph-tool] Questions about the .gt format

2020-10-16 Thread Tiago de Paula Peixoto
Am 16.10.20 um 20:54 schrieb ddka: > Live example here > https://codesandbox.io/s/gt-javascript-nn7k8?file=/src/gt.js Codesandbox > seems a bit flaky, but it appears to be working Your offset change is wrong at line 35. You have to increment 8 bytes, not 1, after reading a 64-bit integer. See

Re: [graph-tool] Questions about the .gt format

2020-10-16 Thread Tiago de Paula Peixoto
Am 15.10.20 um 23:04 schrieb ddka: > Hello, > > I'm in need of an efficient network format for frontend code, and I figured > that since you already have one I shouldn't reinvent the wheel. I'm > currently trying to implement it with Node + Typescript. I'm reading the > docs page for the format

[graph-tool] Questions about the .gt format

2020-10-15 Thread ddka
Hello, I'm in need of an efficient network format for frontend code, and I figured that since you already have one I shouldn't reinvent the wheel. I'm currently trying to implement it with Node + Typescript. I'm reading the docs page for the format carefully, but I'm stuck at a point. I'm not