DaylightingSociety / SocMap

Social Mapping Framework for Twitter
https://socmap.daylightingsociety.org/
BSD 3-Clause "New" or "Revised" License
18 stars 4 forks source link

Multi-layer getLayers() #7

Closed milo-trujillo closed 6 years ago

milo-trujillo commented 6 years ago

We need to rewrite getLayers() as a loop. As psuedocode it should look like:

def getLayers(...):
    for layer in (0 .. numLayers):
        get user list
        get tweets from users on user list
        extract mentions and retweets from users on current list
        save dictionaries of who's retweeting who and who's mentioning who
        save map of progress so far
milo-trujillo commented 6 years ago

Implemented and pushed. As a side-node related to #6 - NetworkX can only read GML files that do have the numeric labels in them. We now create two versions of every map, one with the labels (so we can re-load those maps to build the next layer), and one without (so Cytoscape can read them).