-
Notifications
You must be signed in to change notification settings - Fork 185
Conversation
The idea here would be to make a This first cut is to demonstrate that inlined NOP visitor functions do not impact performance. |
Codecov Report
@@ Coverage Diff @@
## master #1278 +/- ##
==========================================
+ Coverage 99.14% 99.66% +0.52%
==========================================
Files 106 107 +1
Lines 5053 5139 +86
==========================================
+ Hits 5010 5122 +112
+ Misses 43 17 -26 |
BFS shortest paths vs visited vertices: BFS:
Visited vertices:
( |
faa7e91
to
02536c6
Compare
02536c6
to
5ef000c
Compare
Further optimized: BFS shortest paths:
Visited vertices:
(This is a 2m, 20m graph) |
Wow, look at this:
BFS shortest paths:
bfssp (bfs shortest paths using
|
6e27d4c
to
5dec97e
Compare
3dd3d9d
to
4b21ba6
Compare
I plan on creating documentation and tests for this and then merging since it's Experimental. The larger plan is to then deprecate the current shortest paths algorithms for the ones in Experimental, tag a new minor version in the next week or two, then move cc @matbesancon @jpfairbanks @simonschoelly @somil55 for feedback on this plan. |
sounds good to me. Before releasing a major release, we should check what needs breaking to do it once. |
New topological sort (getting ready to push) is a bit slower but perhaps still acceptable (and there might be optimizations we can do):
|
404a7e4
to
82f1f8b
Compare
…ightGraphs.jl into sbromberger/visitors
From a quick glance it looks as if the old topological sort was not implemented verify efficiently. |
If you have any suggestions for improvement, please suggest them in the new topological sort, which is essentially the same as the old one except we're using the new |
3a5700d
to
fc98ce4
Compare
9eb7b0b
to
4101aa3
Compare
I am going to merge this since it's in Experimental. I will be tagging a new release (1.3.1) in the next week. |
This is the BFS algorithm from Experimental.ShortestPaths:
Here's bfs_visit with inlined NOP functions (see code):
Ref: #1272