Skip to content

in/out components need to support filtering #2264

@shivamka1

Description

@shivamka1

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()

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions