I am reading some papers regarding flag algebras, in particular this one. It can be seen that there are nice graphical representations of simple graphs such as triangles and squares, e.g. on the second page. There are also 'inline' examples on for instance the middle of page 6. Do you guys know of some package that the author may have used for this? I asked because I saw the same nice notational tools used in other papers. Thanks in advance!
EDIT: Some of the examples are in figures which I know how to do, but there are both inline and single line examples where the figures are used also.
EDIT2: Other examples include e.g. this one on page 7 and beyond