Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Malte R
graph-tool
Commits
64f62690
Commit
64f62690
authored
Sep 01, 2020
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
label_parallel_edges(): reduce memory usage for very large graphs
parent
b7f0788e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/graph/stats/graph_parallel.hh
src/graph/stats/graph_parallel.hh
+3
-3
No files found.
src/graph/stats/graph_parallel.hh
View file @
64f62690
...
...
@@ -35,8 +35,8 @@ void label_parallel_edges(const Graph& g, ParallelMap parallel, bool mark_only)
typedef
typename
graph_traits
<
Graph
>::
edge_descriptor
edge_t
;
typename
property_map
<
Graph
,
edge_index_t
>::
type
eidx
=
get
(
edge_index
,
g
);
idx
_map
<
vertex_t
,
edge_t
>
vset
;
idx
_map
<
size_t
,
bool
>
self_loops
;
gt_hash
_map
<
vertex_t
,
edge_t
>
vset
;
gt_hash
_map
<
size_t
,
bool
>
self_loops
;
#pragma omp parallel if (num_vertices(g) > OPENMP_MIN_THRESH) \
firstprivate(vset) firstprivate(self_loops)
...
...
@@ -73,7 +73,7 @@ void label_parallel_edges(const Graph& g, ParallelMap parallel, bool mark_only)
else
{
parallel
[
e
]
=
parallel
[
iter
->
second
]
+
1
;
vset
[
u
]
=
e
;
iter
->
second
=
e
;
}
}
}
...
...
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