tnetwork.ComScenario.MIGRATE_ITERATIVE

ComScenario.MIGRATE_ITERATIVE(comFrom, comTo, nbNodes, wait_step=1, delay=1, **kwargs)[source]

Make nodes of a community migrate to another one

The community comFrom lose nodes2add nodes one by one, that join the community comTo, with an interval delay between each migration

Parameters:
  • comFrom – community to shrink
  • comTo – community to grow
  • nbNodes – nb nodes to move
  • delay – the waiting time before the first change
  • wait_step – the waiting time between each node change
Returns: