-
Notifications
You must be signed in to change notification settings - Fork 65
Description
g = Graph()
g.add_node(1,1,{"p10":"red ship"})
g.add_node(1,2,{"p10":"air plane"})
g.add_node(1,3,{"p10":"car"})
g.add_edge(1,1,2,layer="red")
g.add_edge(1,2,3,layer="red")
g.add_edge(1,3,4,layer="blue")
filter_expr_3 = filter.Node.property("p10").temporal().latest().ends_with("car")
g.node(1).layer("red").out_components().degree()
New semantics apply layer to the degree as well but we may want to apply filter only to the out/in components partial results
g.node(1).out_components(filter=filter.Graph.layer("red"))[filter_exp_3].degree()