tnetwork.DynCommunitiesSN.add_community

DynCommunitiesSN.add_community(t, nodes, id=None)[source]

Add a community at a time

Create a community at time t with the provided nodes and id ( random id if not provided)

Parameters:
  • t – time
  • nodes – a community provided as a set/list of nodes
  • id – optional id, otherwise, new unique one