Connect Subtree on a Tree LightGraphs

Good afternoon everybody.

In my work, i need to disconnect subtrees from my graph and connect elsewhere. My question is whether in the LightGraphs package, or in another package, is there an easy way to do this?

In the LighGraphs package, there is the “add_edge!” and “remove_edge!” macro. I’m doubting if existis “add_subtree!” or “remove_subtree!”, or something like that.

Anyway, even though there are no such specific macros, I am looking for an easier way to do this operation.

Best Regards!

Might this be related to your question?

2 Likes