Hi,

Using py2neo, I have a graph

```
mygraph = Graph("bolt://localhost:7687", auth=("neo4j", "***"))
```

I do all my queries in mygraph, also the graph algorithms

```
betweenness_query = """CALL algo.betweenness('', '',{
concurrency: 8,
direction: 'Both',
writeProperty: 'betweenness'
})"""
mygraph.run(betweenness_query).data()
betweenness_table = """ MATCH (n) RETURN n as Nodes, id(n) as Node_id, n.betweenness as BetweenNess """
BetweenNess = mygraph.run(betweenness_table).to_data_frame()
BetweenNess
```

I looking to filter out a set of nodes

```
mygraph.run("MATCH (t:Trans {TrxID: 'T1'})-[*1..5]-(x) RETURN x").to_ndarray()
```

From the above I get a set of nodes, or any traversal of few nodes.

I would like to save that in a new variable for subgraph, then run the graph algorithm only on the set of nodes

is it possible?

Thanks in advance