Diagrammatic algebra: from linear to concurrent systems