Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
4119cf8c
Commit
4119cf8c
authored
Sep 17, 2015
by
Tiago Peixoto
Browse files
Add default constructors in search comparison functors
parent
2e1969c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/graph/search/graph_astar.hh
View file @
4119cf8c
...
...
@@ -101,6 +101,7 @@ private:
class
AStarCmp
{
public:
AStarCmp
()
{}
AStarCmp
(
python
::
object
cmp
)
:
_cmp
(
cmp
)
{}
template
<
class
Value1
,
class
Value2
>
...
...
@@ -116,6 +117,7 @@ private:
class
AStarCmb
{
public:
AStarCmb
()
{}
AStarCmb
(
python
::
object
cmb
)
:
_cmb
(
cmb
)
{}
template
<
class
Value1
,
class
Value2
>
...
...
@@ -132,8 +134,9 @@ template <class Graph, class Value>
class
AStarH
{
public:
AStarH
()
{}
AStarH
(
GraphInterface
&
gi
,
Graph
&
g
,
python
::
object
h
)
:
_gi
(
gi
),
_h
(
h
),
_gp
(
retrieve_graph_view
<
Graph
>
(
gi
,
g
))
{}
:
_h
(
h
),
_gp
(
retrieve_graph_view
<
Graph
>
(
gi
,
g
))
{}
Value
operator
()(
GraphInterface
::
vertex_t
v
)
const
{
...
...
@@ -141,7 +144,6 @@ public:
}
private:
GraphInterface
&
_gi
;
python
::
object
_h
;
std
::
shared_ptr
<
Graph
>
_gp
;
};
...
...
src/graph/search/graph_bellman_ford.cc
View file @
4119cf8c
...
...
@@ -85,6 +85,7 @@ private:
class
BFCmp
{
public:
BFCmp
()
{}
BFCmp
(
python
::
object
cmp
)
:
_cmp
(
cmp
)
{}
template
<
class
Value1
,
class
Value2
>
...
...
@@ -100,6 +101,7 @@ private:
class
BFCmb
{
public:
BFCmb
()
{}
BFCmb
(
python
::
object
cmb
)
:
_cmb
(
cmb
)
{}
template
<
class
Value1
,
class
Value2
>
...
...
src/graph/search/graph_dijkstra.cc
View file @
4119cf8c
...
...
@@ -94,6 +94,7 @@ private:
class
DJKCmp
{
public:
DJKCmp
()
{}
DJKCmp
(
python
::
object
cmp
)
:
_cmp
(
cmp
)
{}
template
<
class
Value1
,
class
Value2
>
...
...
@@ -109,6 +110,7 @@ private:
class
DJKCmb
{
public:
DJKCmb
()
{}
DJKCmb
(
python
::
object
cmb
)
:
_cmb
(
cmb
)
{}
template
<
class
Value1
,
class
Value2
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment