events_generator

class Event(time, static_community, evolving_community, label)

Bases: object

evolving_community: str
label: str
static_community: str
time: int
create_groundtruth_events_generator(tcommlist)

Return groundtruth events generator from tcommlist.

Event types are the following:

  • birth

  • continuation

  • death

Parameters:

tcommlist (Tcommlist) –

Return type:

GeneratorLen[Event]

Returns:

groundtruth events generator

generate_groundtruth_events(tcommlist)

Generate groundtruth events from tcommlist.

Event types are the following:

  • birth

  • continuation

  • death

Parameters:

tcommlist (Tcommlist) –

Return type:

List[Event]

Returns:

groundtruth events