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 some work to do before I can implement this in my app, but I think the light you shined into the dark portion(s) of my brain lit the path me.
Thank you again! lbe On Sunday, June 22, 2025 at 3:32:58 PM UTC-5 Dan Kortschak wrote: > 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/6295c541-ee51-4423-9460-666dda48cd1fn%40googlegroups.com.