Is it somehow possible to generate node graphs with multiple root nodes? I know the command signature allows only one ROOT_NODE
.
The CLI currently doesn’t allow this indeed, but in principle I see no reason why not to allow specifying multiple. I opened a feature request for it: Allow multiple root nodes for node graph generation · Issue #6335 · aiidateam/aiida-core · GitHub
It should be relatively easy to implement.
In the meantime, if you already want to use it, you can look at the implementation and adapt it yourself:
Essentially you would just call Graph.recurse_ancestors
and Graph.recurse_descendants
for each root node.
1 Like