This PR refactors a lot of the graph creation interface leveraging other functions from networkx and implements the possibility of running only a subgraph from a root node
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
Description
This PR refactors a lot of the graph creation interface leveraging other functions from networkx and implements the possibility of running only a subgraph from a root node
Checklist: