MAGNET: A software library for markovian agent networks