Commit Graph

21 Commits

Author SHA1 Message Date
Dan Kortschak
b7bed9533b graph/encoding/graphql: note requirement of dst parameter
The spanning tree walk sets nodes' IDs using the SetIDFromString method
so note that nodes returned by the destination's NewNode method must
satisfy StringIDSetter.
2023-01-17 06:39:27 +10:30
Dan Kortschak
03398562de all: clean up lint identified by ruleguard
Ruleguard run with ruleguard -c=0 -rules ruleguard.rules.go ./... from
https://github.com/dgryski/semgrep-go with the following rules inactivated
to reduce noise:

- unconvert for floating point values
- oddcomparisons
- floateq
2021-05-19 05:44:58 +09:30
Vladimir Chalupecky
c38fb5f9ef all: fix "the the" typo in comments 2019-03-28 14:24:03 +01:00
Dan Kortschak
03f4920c3e graph/encoding/dot: ensure that generated DOT is syntactically valid (#795) 2019-01-14 13:12:24 +01:00
Robin Eklind
24f0d081ca graph/encoding/dot: (un)quote attributes if needed during (un)marshal 2019-01-14 14:27:56 +10:30
Dan Kortschak
609b9d63e8 encoding/dot: make all simple graph marshalling strict
Also fix bug in order of emitting strict keyword.
2018-10-29 23:16:49 +10:30
Dan Kortschak
70492dcef1 all: quieten vet for unkeyed composite literals in test code 2018-09-02 07:59:12 +09:30
kortschak
805531d142 all: change capitalization of gonum in license header 2017-11-02 06:54:08 +10:30
kortschak
7ba61f0ead graph/...: remove Weight method from Edge 2017-08-24 10:21:15 +09:30
Robin Eklind
a6329c40df Merge pull request #200 from mewpull/new-edge
graph: move NewEdge method from encoding.Builder to graph.EdgeAdder
2017-08-20 23:41:36 +02:00
mewmew
0ebdd59ba5 graph: move NewEdge method from encoding.Builder to graph.EdgeAdder
Also rename graph.EdgeSetter to graph.EdgeAdder.

Fixes #56.
2017-08-18 03:51:30 +02:00
mewmew
7e53ef2fae all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go

Keep original comment style (e.g. line comments and block comments).

Fix doc comments containing multiple line comments.

Remove vanity imports from all files except doc.go.

Fixes #12.

The source code of fixdocs is located at:
https://play.golang.org/p/7RtYLzldsO
2017-08-16 14:26:00 +02:00
mewmew
ac48587c92 Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit b2982a3e50.
2017-08-16 14:21:05 +02:00
mewmew
b2982a3e50 all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go

Keep original comment style (e.g. line comments and block comments).

Fix doc comments containing multiple line comments.
2017-08-16 14:07:36 +02:00
mewmew
5b4711aa15 Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit b0a98102dc.
2017-08-16 14:07:17 +02:00
mewmew
b0a98102dc all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go

Keep original comment style (e.g. line comments and block comments).
2017-08-16 14:02:26 +02:00
mewmew
7eaea7c428 Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit 00292b2d57.
2017-08-16 14:01:36 +02:00
mewmew
00292b2d57 all: use fixdocs tool to store package documentation in doc.go
Add copyright header to doc.go
2017-08-16 13:56:50 +02:00
mewmew
a37fef5a6d Revert "all: use fixdocs tool to store package documentation in doc.go"
This reverts commit 963877e5f5.
2017-08-16 13:54:16 +02:00
mewmew
963877e5f5 all: use fixdocs tool to store package documentation in doc.go 2017-08-16 13:19:00 +02:00
kortschak
c9bf5d0701 graph/encoding/graphql: add new package for decoding GraphQL output 2017-08-04 18:29:58 +09:30