Hi all, is there some implemented function in jgrapht to get a minimal
vertex separator set between two non adjacent nodes in an undirected graph?
I was searching at the javadoc but I can't find if there exist something
like that.
This is the concept:
https://en.wikipedia.org/wiki/Vertex_separator#Minimal_separators
I would like to use jgrapht to implement the getMinimalVertexSeparator
function in the following example code:
public static void main(String[] args) {
> UndirectedGraph g = new UndirectedGraph(6);
> g.addEdge(0, 1);
> g.addEdge(1, 2);
> g.addEdge(2, 3);
> g.addEdge(3, 4);
> g.addEdge(4, 5);
> g.addEdge(5, 0);
> List<Integer> x = getMinimalVertexSeparator(0, 2, g);
>
> }
Thanks in advance,
--
Federico
|