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
1d0b48de
Commit
1d0b48de
authored
Sep 01, 2013
by
Tiago Peixoto
Browse files
Fix initialization bug in adj_list<>
parent
444be204
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/graph_adjacency.hh
View file @
1d0b48de
...
...
@@ -142,6 +142,8 @@ public:
typedef
std
::
vector
<
std
::
pair
<
vertex_t
,
vertex_t
>
>
edge_list_t
;
typedef
typename
integer_range
<
Vertex
>::
iterator
vertex_iterator
;
adj_list
()
:
_n_edges
(
0
),
_last_idx
(
0
),
_keep_epos
(
false
)
{}
struct
get_vertex
{
get_vertex
()
{}
...
...
@@ -274,7 +276,7 @@ public:
return
_keep_epos
;
}
size_t
get_last_index
()
const
{
return
_last_idx
;}
size_t
get_last_index
()
const
{
return
_last_idx
;
}
static
Vertex
null_vertex
()
{
return
std
::
numeric_limits
<
Vertex
>::
max
();
}
...
...
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