Flexible inference in heterogeneous and attributed multilayer networks | Synapse