LP to compute all cuts between 2 vertices of a graph

32 Views Asked by At

Given an undirected graph $G$ (for example a symmetric adjacency matrix) without weights, I want to compute all cuts of two chosen vertices in the graph.

Actually there is an R-function st_cuts of package 'igraph' that does this, but I (and more people) get errors with this function while it should compute the cuts.

Therefore I want to make an own function (in R) that computes for a given pair of vertices $(s,t)$, all the $s-t$ cuts between vertices $s$ and $t$. Preferably with each cut expressed in edges. I know that the number of cuts between $s$ and $t$ may be far larger then the number of edges and vertices, but the graphs I consider are not that big (maximal 35 vertices and 40 edges).

There are algorithms that compute the min s-t cut, but I want all s-t cuts.

Does anyone know an LP which solves this (or another way to program it)?

Any help is appreciated!