Merge pull request #3 from flavien75/master

link selection: considers both the type and relation of link to avoid po...
Removed old comments (Flavien's PR merge OK)