Skip to content

Instantly share code, notes, and snippets.

@import-benjamin
Created November 25, 2017 14:34
Show Gist options
  • Save import-benjamin/6512aef6ab8ad098cadbb1cf10bb2f3e to your computer and use it in GitHub Desktop.
Save import-benjamin/6512aef6ab8ad098cadbb1cf10bb2f3e to your computer and use it in GitHub Desktop.
// desc : on récupère les prédecesseurs d'un sommet
// input : sommet (X), matrice d'adjacence (M)
function LP = predecesseurs(M,X)
LP = find(M(:,X) == 1)
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment