Skip to content

Commit

Permalink
Merge pull request #40 from arturo-lang/add-optional-properties-to-edges
Browse files Browse the repository at this point in the history
PR cleanup
  • Loading branch information
drkameleon committed Nov 4, 2023
2 parents 7413c2b + fb552fb commit adb4f5b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions grafito.art
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,6 @@ graph: function [
continue
]
if is? :edgeFilter v [
print "that's an edgeFilter!!!"
inspect v
; it's a directed edge filter
if dictionary? v\content [
searchForProperties: ""
Expand Down Expand Up @@ -895,23 +893,13 @@ graph: function [
]
]
]
print ["block? v.content =>" block? v\content]
print ["0 < size v.content =>" 0 < size v\content]
print [":dictionary = type first v.content =>" :dictionary = type first v\content]
print ["not? empty? v.properties" not? empty? v\properties]
print ["OR GIVES:" or?
and? [0 < size v\content]
[:dictionary = type first v\content]
not? empty? v\properties
]
if all? @[
block? v\content
or?
and? [0 < size v\content]
[:dictionary = type first v\content]
not? empty? v\properties
][
print "it's accurate!"
searchForProperties: ""
subfilters: []
subvals: []
Expand All @@ -922,7 +910,6 @@ graph: function [

subfilters: new []
loop v\properties [kk,vv][
print ["processing:" kk]
[collate,symb,val]: @[collator, "=", codifySafe vv]
subvals: subvals ++ ~"$.|kk|"
subfilters: subfilters ++ ~edgePropertyWithValueFilter
Expand All @@ -931,8 +918,6 @@ graph: function [
searchForProperties: ~"AND (|subfilters|)"
]

print searchForProperties

orCriteria: new []
(0 < size v\content)? [
loop v\content [edgef][
Expand Down

0 comments on commit adb4f5b

Please sign in to comment.