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 for this by walking the tree and
deserialise by reversing this.

graph/simple graphs can be serialised via a variety of packages in the
graph hierarchy (these are in graph/encoding and graph/formats.

Note also that the graph implementations in simple and multi may not be
what you want. This is discussed in www.gonum.org/post/word_ladder/;
they are provided for OOTB work and for our testing needs. They may
also be used as a starting point for a copy/paste implementation where
you can add or adjust behaviour.

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/d59da232cbb863e43e37f7adbaa885e06a080c28.camel%40kortschak.io.

Reply via email to