Commit Graph

10 Commits

Author SHA1 Message Date
Eng Zer Jun
7d22d85fb1 graph: fix comment of exported elements
According to Comment Sentences at github.com/golang [1], it is a
convention to begin a comment with the name of the exported element.

[1]: https://github.com/golang/go/wiki/CodeReviewComments#comment-sentences

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-09-23 11:30:23 +09:30
Dan Kortschak
22615bc090 graph/iterator: fix Len for depleted ImplicitNodesIterator 2021-04-26 15:38:09 +09:30
Dan Kortschak
39cd12e938 graph/iterator: add lazy ordered node iterators 2020-07-02 07:47:46 +09:30
Dan Kortschak
2db33926ac graph/iterator: extend iteration tests and fix counting error 2020-07-02 07:47:46 +09:30
Dan Kortschak
16da37cc66 graph/iterator: implement unsafe node iterators 2020-07-02 07:47:46 +09:30
Dan Kortschak
91d83a4f35 graph/iterator: add fast paths for node slices and add tests
Fix bugs in NodeSlice methods:

- ImplicitNodes did not return nil for an empty set of nodes.
- OrderedNodes returned one too many nodes if Next has been called.
2020-07-02 07:47:46 +09:30
Dan Kortschak
d4ef54c821 graph/iterator: implement edge and line based lazy node iterator 2020-07-02 07:47:46 +09:30
Dan Kortschak
2a132c9421 graph/iterator: consolidate node iterators 2019-10-13 07:56:07 +10:30
Dan Kortschak
2df0688894 graph/simple: test graph implementations with testgraph package
Fix bugs found by testgraph.
2018-11-21 11:35:03 +10:30
Dan Kortschak
b73a2c92ff graph: add node, edge and line iterators 2018-09-23 09:25:56 +09:30