Distances on Directed Graphs in R
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add const to set comparison operators to fix #208

+4 -4
+1 -1
DESCRIPTION
··· 1 1 Package: dodgr 2 2 Title: Distances on Directed Graphs 3 - Version: 0.2.20.035 3 + Version: 0.2.20.036 4 4 Authors@R: c( 5 5 person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")), 6 6 person("Andreas", "Petutschnig", role = "aut"),
+1 -1
codemeta.json
··· 7 7 "codeRepository": "https://github.com/ATFutures/dodgr", 8 8 "issueTracker": "https://github.com/ATFutures/dodgr/issues", 9 9 "license": "https://spdx.org/licenses/GPL-3.0", 10 - "version": "0.2.20.035", 10 + "version": "0.2.20.036", 11 11 "programmingLanguage": { 12 12 "@type": "ComputerLanguage", 13 13 "name": "R",
+1 -1
src/pathfinders.h
··· 37 37 38 38 struct by_wt 39 39 { 40 - bool operator () (const DijkstraEdge& lhs, const DijkstraEdge& rhs) 40 + bool operator () (const DijkstraEdge& lhs, const DijkstraEdge& rhs) const 41 41 { 42 42 if (fabs (lhs._wt - rhs._wt) < 1.0e-12) 43 43 return lhs._i < rhs._i;
+1 -1
src/turn_penalty.h
··· 21 21 // https://stackoverflow.com/questions/6989100/sort-points-in-clockwise-order 22 22 struct clockwise_sort 23 23 { 24 - bool operator () (const OneEdge &a, const OneEdge &b) 24 + bool operator () (const OneEdge &a, const OneEdge &b) const 25 25 { 26 26 if (a.x >= 0.0 && b.x < 0.0) 27 27 return true;