ta.TwitterAnalysis.concat_edges

TwitterAnalysis.concat_edges(G)[source]

Aux function to concatenate edges to help filter in mongoDB

Parameters

G – undirected networkx graph created from the Twitter data

Returns

the array with the concatenatd edges

Return type

arr_edges

Examples

Create an array of concatenated edges from a networkx graph:

>>> arr_edges = concat_edges(G)