To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / _FullBNT / BNT / graph / graph_separated.m @ 8:b5b38998ef3b

History | View | Annotate | Download (162 Bytes)

1
function sep = graph_separated(G, X, Y, S)
2

    
3
G2 = G;
4
G2(S,:) = 0;
5
G2(:,S) = 0;
6
conn = reachability_graph(G2);
7
conn2 = conn(X,Y);
8
sep = all(conn2(:)==0);
9