Commit Graph

56 Commits

Author SHA1 Message Date
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
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
kortschak
4d30eb012e graph/encoding: rename decoding API in encoding package 2017-08-04 11:08:07 +09:30
kortschak
8e3d6da27f graph/encoding: move basic encoding API into new encoding package 2017-08-03 18:57:33 +09:30
kortschak
185d1d1b99 graph/encoding/dot: fix NewNode use in tests and decoding 2017-07-21 17:34:05 +09:30
kortschak
14abf35139 graph/formats/dot: rename Kind* => *Kind 2017-07-19 18:12:06 +09:30
kortschak
7db7251618 graph/encoding/dot: reorganise files 2017-07-16 13:52:43 +09:30
kortschak
39b486f179 graph: revert NewNodeID -> NewNode 2017-07-07 06:59:14 +09:30
kortschak
25c06a99f7 graph/encoding: update for int64 IDs 2017-07-02 08:38:42 +09:30
kortschak
6557c5dc64 all: simplify code identified by gosimple 2017-06-20 15:04:11 +09:30
kortschak
619e137c2c graph,graph/{encoding/dot,internal/set,topo,traverse}: remove intsets imports 2017-06-16 19:39:51 +09:30
Dan Kortschak
2942f5c623 graph/encoding/dot: allow unmarshalling of DOT IDs 2017-06-09 20:01:14 +09:30
kortschak
9e16ba4ad2 graph/encoding/dot: allow unmarshaling of global attributes 2017-06-09 08:07:23 +09:30