You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are two edges from node A to node B with values 3 and 4, and one from node B to node A with value 4, then the edges with value 4 should be matched, right? But this currently isn't possible.
Also, there's a step where a possible matching is only kept if all the mappings it has have valid (read: equal) variable values. Edges can't be checked in the same way. Maybe check that the count of edges between two rule nodes with variable labels is equal to (or less than) the count of edges between two graph nodes with the same value of the right type. But this condition should be checked for all possible variable values, which may be more than one per matching (see above)
The text was updated successfully, but these errors were encountered:
If the variable exists in a node's label, then use that as the value (because it's dependent on the possible_matching). If there are any rule edges with the same variable, then make sure that there are at least as many graph edges with the right value between the same nodes.
If the variable doesn't exist in a node's label, and instead is in a edge's label, then just check there are as many graph edges with the right type and the same value as there are rule edges with the variable.
None of this would be a problem if you could only have one instance of a variable. You could still check for variables being equal in a rule's condition as well...
It's nice for the user though, just looks like it might be a pain in the arse to implement.
Is it the case that if a variable isn't present in any node labels, and is only in edge labels. That any value for this variable is fine, and shouldn't effect the possible matching of the node mappings?
Because if that's the case, then any value for the variable (that has enough matching edges) can be chosen with no problems.
I'm currently too tired to reason about whether or not this is the case.
Variables' values can't be calculated if they only exist in an edge's label.
If there are two edges from node A to node B with values 3 and 4, and one from node B to node A with value 4, then the edges with value 4 should be matched, right? But this currently isn't possible.
Also, there's a step where a possible matching is only kept if all the mappings it has have valid (read: equal) variable values. Edges can't be checked in the same way. Maybe check that the count of edges between two rule nodes with variable labels is equal to (or less than) the count of edges between two graph nodes with the same value of the right type. But this condition should be checked for all possible variable values, which may be more than one per matching (see above)
The text was updated successfully, but these errors were encountered: