diff options
Diffstat (limited to 'sourcecodes/bnt-master/graph/parents.m')
| -rw-r--r-- | sourcecodes/bnt-master/graph/parents.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/graph/parents.m b/sourcecodes/bnt-master/graph/parents.m new file mode 100644 index 00000000..24354a74 --- /dev/null +++ b/sourcecodes/bnt-master/graph/parents.m @@ -0,0 +1,5 @@ +function ps = parents(adj_mat, i) +% PARENTS Return the list of parents of node i +% ps = parents(adj_mat, i) + +ps = find(adj_mat(:,i))'; |
