Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
9c3246a4
Commit
9c3246a4
authored
Aug 25, 2020
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graph_adjacency.hh: improve removal or last vertex
parent
e30fbc4f
Pipeline
#714
passed with stage
in 131 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/graph/graph_adjacency.hh
src/graph/graph_adjacency.hh
+5
-1
No files found.
src/graph/graph_adjacency.hh
View file @
9c3246a4
...
...
@@ -1201,7 +1201,11 @@ void remove_vertex(Vertex v, adj_list<Vertex>& g)
g
.
_edges
.
erase
(
g
.
_edges
.
begin
()
+
v
);
size_t
N
=
g
.
_edges
.
size
();
#pragma omp parallel for schedule(runtime) if (N > 100)
if
(
v
==
N
)
return
;
#pragma omp parallel for schedule(runtime) if (N > 1000)
for
(
size_t
i
=
0
;
i
<
N
;
++
i
)
{
for
(
auto
&
e
:
g
.
_edges
[
i
].
second
)
...
...
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