Dan Kortschak
bc349ecfab
all: replace internal rand shim with math/rand/v2
2025-02-01 22:18:04 +10:30
Dan Kortschak
cf3307fa63
all: partially migrate to math/rand/v2
...
This is not intended to be a completed transition since it leaves the
libraries unusable to external client code, but rather as a step towards
use of math/rand/v2. This initial step allows repair of sequence change
failures without having to worry about API difference.
2025-02-01 22:18:04 +10:30
Dan Kortschak
db381b03c0
graph/{multi,simple,testgraph}: fix edge reversal tests and multi.WeightUndirected
...
This also adds the option for not testing edge reversal.
2020-12-19 21:14:24 +10:30
Dan Kortschak
9182d211c6
graph/internal/set: make Nodes creation a function
...
This allows us to alter the type that is returned and the
underlying implementation if necessary.
2019-03-14 20:54:06 +10:30
Dan Kortschak
761876748e
graph: make edges and lines reversible
2019-03-13 07:14:55 +10:30
Dan Kortschak
f0541c62aa
graph/{multi,simple,testgraph}: extend edge testing
...
Fix bug found in weighted multigraphs found by addition of line and edge
testing breadth.
2019-02-10 06:51:37 +10:30
Dan Kortschak
8e5c62bb4c
graph/multi: wire up node and line addition and deletion tests
...
Fix failing case for RemoveLine in the undirected types.
2019-02-01 08:51:46 +10:30
Dan Kortschak
14c7f9569f
graph: add Empty universal iterator for empty returns
2018-12-22 09:59:24 +10:30
Dan Kortschak
2b0dcc4a5e
graph/multi: test graph implementations with testgraph package
...
Fix bugs found by testgraph.
2018-11-21 11:35:03 +10:30
Dan Kortschak
72366fbe54
graph/{multi,simple}: ensure implementations satisfy the interfaces they target
2018-09-23 19:12:43 +09:30
Dan Kortschak
b73a2c92ff
graph: add node, edge and line iterators
2018-09-23 09:25:56 +09:30
Dan Kortschak
a1b5d898fe
graph: use int64 for node removal
2018-05-07 19:11:10 +09:30
Dan Kortschak
6b03bc22e1
graph: use int64 for node retrieval
2018-03-24 09:21:44 +10:30
kortschak
34369ddb26
multi: new package implementing multigraph API
2018-01-19 21:59:01 +10:30