Link diagrams generation