Re: [go-nuts] Save and Restore State of 3rd party data

2025-06-23 Thread Learned Byerror
Dan, Thank you very, very much!!! I don't know what I was looking at when I thought that i saw private fields in vptree. WRT to graph, I knew about graph/encoding however for some reason I remembered it as being about to convert to dot for example, not convert dot to gonum/graph. I still have

Re: [go-nuts] Save and Restore State of 3rd party data

2025-06-22 Thread 'Dan Kortschak' via golang-nuts
On Sat, 2025-06-21 at 09:03 -0700, Learned Byerror wrote: > Both gonum/vptree an gonum/graph/simple contain private fields. vptree is entirely exported, being a tree of vptree.Node which has no unexported field, rooted in vptree.Tree, also with no unexported field. You can implement a serialiser f

[go-nuts] Save and Restore State of 3rd party data

2025-06-21 Thread Learned Byerror
All, I have an application that uses gonum/vptree and gonum/graph/simple. Currently every run of the application instantiates the vptree from a database, queries the vptree to find nearest neighbors, writes the data to database table A, creates a weighted undirected graph from table A, ext