Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding a new role:
r_til_c(Role, Concept)
.This role finds and stores the shortest path of every object to an object from concept C following a role R.
For example, we have a symmetric role
connected = {(A, B) | A in {1,2,3}, B in {1,2} and a is A non-diagonal neighbor of B}
which describes a 3x2 grid, and conceptgoal := {1_1, 1_3}
:Then
r_til_c(connected, goal) = {(1_2, 1_1), (1_2, 1_3), (2_1, 1_1), (2_2, 2_1), (2_2, 1_2), (2_2, 2_3), (2_3, 1_3)}
. For cells 1_2, 2_1 and 2_3 there is only one shortest path to the nearest goal cell. For 2_2 there are four paths over three successor with minimal lengths to a goal cell.