about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/graph/graph_separated.m
blob: 32a118411bec337937196b0dcc8edc0db27b2eb2 (plain)
1
2
3
4
5
6
7
8
9
function sep = graph_separated(G, X, Y, S)

G2 = G;
G2(S,:) = 0;
G2(:,S) = 0;
conn = reachability_graph(G2);
conn2 = conn(X,Y);
sep = all(conn2(:)==0);