community
Community
Bases: ABC
Abstract community class.
__eq__(other)
Two communities are the same if they have the same name. This is used to simplify caching.
_generate_temporal_graph(start=None, end=None, kind='co_contributor')
Generate a graph based only on posts created after start (>) and before end (<).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start |
datetime |
None
|
|
end |
datetime |
None
|
|
kind |
string (one of 'co_contributor', 'commenter') |
'co_contributor'
|
temporal_graph(start=None, end=None, kind='co_contributor')
Cached access to temporal graphs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start |
None or datetime start of graph snapshot |
None
|
|
end |
None or datetime end of graph snapshot |
None
|
|
kind |
string ('co_contributor' or 'commenter'). |
'co_contributor'
|