Closed p-dre closed 4 months ago
It took me some time to find out that this is not wrong but that I had not yet done the step of assigning to the partitions as in find_partition_temporal
membership = {(v['slice'], v['name']): m for v, m in zip(G_full.vs, partitions[0].membership)}
membership_time_slices = []
for H in graph_list:
membership_slice = [membership[(v['slice'], v['name'])] for v in H.vs]
membership_time_slices.append(list(membership_slice))
If I use the time_slices_to_layers I get the same number of accounts for each layer at time t which does not correspond to the number of nodes in the graph object. It is also the same number of accounts as in the whole graph. This leads to the problem that I later get the same list from partition[i].membership at every point in time. It may be worth mentioning that I have manually limited the number of communities