This work presents an investigation of magnetic filaments with different topologies made out of ferromagnetic spherical and ellipsoidal nanoparticles - simple open chains and closed rings which are the ground states of dipolar hard particles. It was shown that shape of particles, the size of their magnetic moment, temperature and filament’s length can significantly change conformation and properties of a single filament