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
5f0141ca4c
all: run gofmt and generate all packages
...
Changes made in dsp/fourier/internal/fftpack break the formatting used
there, so these are reverted. There will be complaints in CI.
[git-generate]
gofmt -w .
go generate gonum.org/v1/gonum/blas
go generate gonum.org/v1/gonum/blas/gonum
go generate gonum.org/v1/gonum/unit
go generate gonum.org/v1/gonum/unit/constant
go generate gonum.org/v1/gonum/graph/formats/dot
go generate gonum.org/v1/gonum/graph/formats/rdf
go generate gonum.org/v1/gonum/stat/card
git checkout -- dsp/fourier/internal/fftpack
2022-08-06 07:05:17 +09:30
Dan Kortschak
8f6a7707f4
graph/internal/ordered: replace slice sort types with sort.Slice calls
2021-10-14 07:01:58 +10:30
Dan Kortschak
97f387b38f
graph/encoding: provide attribute handling out of the box
2021-06-04 07:45:54 +09:30
Dan Kortschak
80ff04b367
graph/encoding/dot: don't panic when an Attributers returns a nil
2021-05-27 07:13:10 +09: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
Dan Kortschak
674d3f1c73
graph/encoding/{,di}graph6: fix bit handling for graph size encoding
2021-05-09 17:44:04 +09:30
Dan Kortschak
c833bade6c
graph/encoding/dot: add tests for empty graphs
2021-03-20 09:19:30 +10:30
Dan Kortschak
ca24245762
graph/encoding/dot: factor out repeated forward keys
2020-12-02 06:12:09 +10:30
Dan Kortschak
e2a07cfc01
graph/encoding/dot: fix line visit marking
2020-12-02 06:12:09 +10:30
Dan Kortschak
4cb41c693f
graph/encoding/dot: don't propagate edge-setting panics when unmarshaling DOT
2020-11-21 09:36:56 +10:30
Dan Kortschak
f883758f08
graph/encoding/{digraph6,graph6}: allow packages to build on 32-bit arches
2020-09-14 07:43:08 +09:30
Dan Kortschak
c4b2949c58
graph/encoding/dot: add example for decoding a weighted graph
2019-11-30 05:40:37 +10:30
Dan Kortschak
b34a300801
all: fix capitalisation of Gonum
...
This fixes the capitalisation of Gonum where it refers to the project rather
than the GitHub organisation or repository. The text of CONTRIBUTORS also
is fixed to reflect the reality that contributors may have contributed to
other repositories within the project.
2019-11-16 21:25:28 +10:30
Dan Kortschak
623f346311
graph: clean up lint
2019-11-02 05:20:20 +10:30
Dan Kortschak
1459092b91
graph/encoding/dot: remove linty cruft
2019-10-14 05:57:25 +10:30
Dan Kortschak
50d2d73eeb
graph/encoding/{,di}graph6: add support for digraph6- and graph6-encoded graphs
2019-03-29 10:05:22 +10:30
Vladimir Chalupecky
c38fb5f9ef
all: fix "the the" typo in comments
2019-03-28 14:24:03 +01:00
Dan Kortschak
761876748e
graph: make edges and lines reversible
2019-03-13 07:14:55 +10:30
Dan Kortschak
03f4920c3e
graph/encoding/dot: ensure that generated DOT is syntactically valid ( #795 )
2019-01-14 13:12:24 +01:00
Dan Kortschak
bb6edb12aa
graph/encoding/dot: refactor quoting docs ( #797 )
2019-01-14 13:11:29 +01:00
Robin Eklind
24f0d081ca
graph/encoding/dot: (un)quote attributes if needed during (un)marshal
2019-01-14 14:27:56 +10:30
Robin Eklind
ff0fdabd90
encoding/dot: set DOT node ID before adding node to graph ( #775 )
...
This makes it possible to implement the AddNode method of
graph.NodeAdder to track the nodes of a graph by DOT node
ID, as they are added.
2018-12-23 00:19:38 +01:00
Dan Kortschak
c64a0a7fc7
graph/encoding/dot: run go fmt -s
2018-12-12 21:38:20 +10:30
Dan Kortschak
4fc8509578
encoding/dot: pass returned error up call stack
...
This should probably use a rich error strategy, but we can leave that for
when the Go error handling experiments are more fully developed.
2018-11-25 18:52:21 +10:30
Dan Kortschak
cdf8233f4e
encoding/dot: always allow first graph to be returned
2018-11-25 18:52:21 +10:30
J. Holmes
b3c4e40467
graph/encoding/dot: add multigraph serialization and deserialization support
2018-11-25 07:31:56 +10:30
Olivier Wulveryck
d41320af1e
fix: documentation of Marshal
...
the "strict" keyword mentioned in the documentation does not exist
anymore
2018-11-20 07:15:39 +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
Olivier Wulveryck
a290f01ec4
graph/encoding/dot: fix link to dot documentation
...
Add Olivier Wulveryck to A+C
2018-10-01 19:22:03 +09:30
Dan Kortschak
b73a2c92ff
graph: add node, edge and line iterators
2018-09-23 09:25:56 +09:30
Dan Kortschak
70492dcef1
all: quieten vet for unkeyed composite literals in test code
2018-09-02 07:59:12 +09:30
Dan Kortschak
259c560b35
graph/encoding/dot: add test for chained edge attributes
2018-07-16 11:50:45 +09:30
mewmew
d75fc496fb
graph/encoding/dot: add attributes for edge chains
...
Fixes #545 .
2018-07-16 08:27:13 +09:30
Dan Kortschak
438fe0c5f4
encoding/dot: run gofmt
2018-06-07 17:58:20 +09:30
J. Holmes
cb2511e4c8
encoding/dot: support edge ports on Unmarshal/decode
2018-04-16 14:31:32 +09:30
J. Holmes
b2e9df857d
encoding/dot: fix ports on undirected graphs
2018-04-16 10:43:11 +09:30
Dan Kortschak
6b03bc22e1
graph: use int64 for node retrieval
2018-03-24 09:21:44 +10:30
kortschak
299547a6f4
Revert "graph: change Edge interface to include ID method"
...
This reverts commit 1a83fdba7a
.
Further design discussion leads to a better approach with an additional
edge-type interface.
2017-12-14 08:24:55 +10:30
kortschak
1a83fdba7a
graph: change Edge interface to include ID method
...
This is to allow future handling of multigraphs.
2017-12-11 08:06:56 +10:30
kortschak
805531d142
all: change capitalization of gonum in license header
2017-11-02 06:54:08 +10:30
Robin Eklind
f786e6cd3c
graph/encoding/dot: store graph DOT ID if present ( #237 )
...
Add round trip test case for graph DOT ID.
2017-09-28 10:02:53 +02:00
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