Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thank you very much. For 4 circles the answer turns out to be boringly simple, the diameter is just half the length of the side. I was expecting that there existed some hexagonal packing more optimal than this when I asked the questing.