I need an algorithm that can find a tree decomposition given a graph in Python, the graphs will be small so it doesn't need to be very efficient. I have looked around but cannot find much on this at all. Anyone know of a package that can do this or some sudo code I could use to make my own?
Asked
Active
Viewed 1,877 times
2

Dominique Fortin
- 2,212
- 15
- 20

Fagin Plant Hales
- 31
- 1
- 4
-
1sounds related to [CSTheory: Program for computing Tree decomposition of a graph](https://cstheory.stackexchange.com/questions/6034/program-for-computing-tree-decomposition-of-a-graph) – chickity china chinese chicken Nov 01 '18 at 17:51
1 Answers
1
Have you looked at networkx? See: https://networkx.github.io/documentation/latest/reference/algorithms/approximation.html

Josep Valls
- 5,483
- 2
- 33
- 67