Commit Graph

17 Commits

Author SHA1 Message Date
Dan Kortschak
0fd78a9919 graph: fix nodeIteratorPair bug revealed by lazy iterators 2020-07-02 07:47:46 +09:30
Dan Kortschak
7b679e3cd8 graph: rename nodeFilterIterator => nodeIteratorPair and minor fixes
The length calculation is now correct. This had not effect previously as
NodesOf is lenient in how it handles mis-estimated iterator lengths.
2019-10-30 09:26:19 +10:30
Dan Kortschak
761876748e graph: make edges and lines reversible 2019-03-13 07:14:55 +10:30
Dan Kortschak
969ecdd209 graph: remove Has method from Graph and Multigraph 2018-10-12 17:57:01 +10:30
Dan Kortschak
72b16051b3 graph: fix doc for Undirect*.Node 2018-09-29 22:38:50 +09:30
Dan Kortschak
46d85b5bdf graph: avoid issues around graph node retrieval subtleties
With the approach to graph node mutation on edge setting the previously
existed there was an issue that the edge last used connect a pair of
nodes could result in a difference in the nodes being returned by a node
query compared to the same node associated with edges returned from an
edge query.

This change avoids dealing with that by making it implementation
dependent and stating this, and by making all the node-storing graphs
we provide mutate the nodes when edges are set.
2018-09-29 19:26:44 +09:30
Dan Kortschak
b73a2c92ff graph: add node, edge and line iterators 2018-09-23 09:25:56 +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
kortschak
7ba61f0ead graph/...: remove Weight method from Edge 2017-08-24 10:21:15 +09:30
kortschak
715b695621 graph,graph/{network,path}: remove Weighter interface 2017-08-24 10:21:15 +09:30
kortschak
a0c93557a5 graph,graph/simple: add weighted graph interfaces and implementations 2017-08-24 10:21:06 +09:30
kortschak
b4e6656724 graph: change IDs to int64 2017-07-02 08:38:42 +09:30
kortschak
619e137c2c graph,graph/{encoding/dot,internal/set,topo,traverse}: remove intsets imports 2017-06-16 19:39:51 +09:30
Brendan Tracey
059a6c43f9 graph: imported graph as a subtree 2017-05-23 00:02:59 -06:00