Globbing and edges #1555
-
I would like to understand how to target every edge coming in / out from filtered objects. In this example, for some subset of the objects, I want to set the color of every incoming edge as green, and every outgoing edge as blue. It works as long as targeting specific objects, as seen in the uncommented part. However, If there were multiple How would one glob edges from globbed objects? A -> spoke
B -> spoke
spoke -> C
spoke -> D
spoke -> E
spoke: {
class: [someclass]
}
classes: {
someclass: {
style.fill: "transparent"
style.stroke: "transparent"
}
}
(spoke -> *)[*]: {
style.stroke: "red"
}
(* -> spoke)[*]: {
style.stroke: "green"
}
# *: {
# &class: someclass
#
# (_ -> *)[*]: {
# style.stroke: "red"
# }
#
# (* -> _)[*]: {
# style.stroke: "green"
# }
# } |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
this would be a case of more filters, which we'll add soon (* -> *)[*]: {
# filter for all edges that point to an object with label "spoke"
dst: {
&label: spoke
}
style.stroke: "green"
} |
Beta Was this translation helpful? Give feedback.
@canelhasmateus
this would be a case of more filters, which we'll add soon