-
Notifications
You must be signed in to change notification settings - Fork 0
Implement RPQ-matrix reachability algorithm #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: suvorovrain/update-stable
Are you sure you want to change the base?
Conversation
Solver logic was moved out main public function. Also this patch adds input validation. Signed-off-by: Rodion Suvorov <[email protected]>
This patch add documentation with explaining of RPQ-matrix algorithm work. Signed-off-by: Rodion Suvorov <[email protected]>
Remove unused label function and old logic from check function. Signed-off-by: Rodion Suvorov <[email protected]>
Signed-off-by: Rodion Suvorov <[email protected]>
Signed-off-by: Rodion Suvorov <[email protected]>
In previous versions there was a logic mistakes in processing of L and R kleene stars. Now they are correct. Also provide a docs. Signed-off-by: Rodion Suvorov <[email protected]>
In this patch all kleene stars was slightly changed - Identity matrix name changes from E to I - All tmp matrices T was demolished - R kleene logic changed from S <- A T <- S x B S <- S + T to S <- A S <- S x (B + I) - L kleene logic changed in the same way Signed-off-by: Rodion Suvorov <[email protected]>
Add spaces before ; and add docs for struct in include. Signed-off-by: Rodion Suvorov <[email protected]>
This patch fixes typo in the name of RPQ-matrix main function. Correct in include and algorithm directories. Signed-off-by: Rodion Suvorov <[email protected]>
This patch fixes incorrect assertions in check and in main functions. Also some refactor Signed-off-by: Rodion Suvorov <[email protected]>
In previous commit about kleene logic I start use result matrix S as input and output. I guess this leads to UB. So i come back to tmp matrices. Signed-off-by: Rodion Suvorov <[email protected]>
This patch adds tests for valid and invalid input. Signed-off-by: Rodion Suvorov <[email protected]>
|
I've created new "stable" branch for this PR because our stable branch is a little bit old |
This patch brings old kleene logic back: - R kleene: S <- A S <- S x (B + I) - L kleene: S <- B S <- (A + I) x S Also all kleene stars now implemented via accumulator without creation new tmp matrices. Signed-off-by: Rodion Suvorov <[email protected]>
|
Some work still needed |
Signed-off-by: Rodion Suvorov <[email protected]>
| sr = GrB_LOR_LAND_SEMIRING_BOOL ; | ||
| op = GxB_LOR_BOOL_MONOID ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I can choose faster rings? Let me know please.
|
@suvorovrain I have pushed the fixes in |
This PR adds RPQ-matrix reachability algorithm from Diego Arroyuelo, Adrián Gómez-Brandón & Gonzalo Navarro paper "Evaluating regular path queries on compressed adjacency matrices".