File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,7 @@ const encodingVersion = 1
112112
113113// Export writes the graph to a writer.
114114//
115- // T must be encodable by encoding/binary or implement io.WriterTo.
116- // The underlying value type must be encodable with Gob.
115+ // T must implement io.WriterTo.
117116func (h * Graph [T ]) Export (w io.Writer ) error {
118117 distFuncName , ok := distanceFuncToName (h .Distance )
119118 if ! ok {
@@ -162,9 +161,9 @@ func (h *Graph[T]) Export(w io.Writer) error {
162161}
163162
164163// Import reads the graph from a reader.
165- // T must be decodable by encoding/binary or implement io.ReaderFrom.
166- // The parameters do not have to be equal to the parameters
167- // of the exported graph . The graph will converge onto the new parameters.
164+ // T must implement io.ReaderFrom.
165+ // The imported graph does not have to match the exported graph's parameters (except for
166+ // dimensionality) . The graph will converge onto the new parameters.
168167func (h * Graph [T ]) Import (r io.Reader ) error {
169168 var (
170169 version int
You can’t perform that action at this time.
0 commit comments