Module Import alias identifier FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore ListLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str Str BinOpAdd NameLoad Num keyword NameLoad attr Slice NameLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str Str BinOpAdd NameLoad Num keyword NameLoad attr Slice NameLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str Str BinOpAdd NameLoad Num keyword NameLoad attr Slice NameLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str Str BinOpAdd NameLoad Num keyword NameLoad attr Slice NameLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str Str BinOpAdd NameLoad Num keyword NameLoad attr Slice NameLoad SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr Str Str BinOpAdd NameLoad Num keyword NameLoad attr Slice NameLoad Return SubscriptLoad NameLoad Slice NameLoad decorator_list Assign NameStore ListLoad ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str Import alias Import alias identifier FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str Call NameLoad ListComp Call NameLoad Call AttributeLoad NameLoad attr BinOpMult NameLoad Num comprehension NameStore SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list ImportFrom alias Import alias identifier Import alias identifier FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call NameLoad NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign NameStore Num Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Slice Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore ListComp Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num comprehension NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num CompareGt BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Num SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Num SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num For TupleStore NameStore NameStore NameStore Call NameLoad Call NameLoad BinOpSub NameLoad Num SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num body Assign NameStore BinOpSub SubscriptLoad NameLoad Index BinOpAdd NameLoad Num SubscriptLoad NameLoad Index NameLoad If CompareGt NameLoad NameLoad body AugAssignAdd SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Num AugAssignAdd NameStore Num For TupleStore NameStore NameStore NameStore Call NameLoad Call NameLoad Num NameLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num body Assign NameStore BinOpSub SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num If CompareGt NameLoad NameLoad body AugAssignAdd SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Num AugAssignAdd NameStore Num For TupleStore NameStore NameStore Call NameLoad SubscriptLoad NameLoad Slice Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Assign NameStore CompareGt BinOpSub SubscriptLoad NameLoad ExtSlice Slice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Slice Index Num NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr CompareLtE SubscriptLoad NameLoad ExtSlice Slice Slice Index Num SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Num CompareGtE SubscriptLoad NameLoad ExtSlice Slice Slice Index Num SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpSub Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Num Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Index Num If BoolOpAnd CompareGt NameLoad NameLoad CompareNotEq NameLoad NameLoad body AugAssignAdd SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad BinOpMult Call NameLoad Num BinOpDiv NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Num AugAssignAdd NameStore BinOpMult Call NameLoad Num BinOpDiv NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpDiv BinOpAdd NameLoad NameLoad BinOpMult BinOpMult Num NameLoad NameLoad Assign NameStore NameLoad While BoolOpOr CompareIs NameLoad NameLoad CompareGt NameLoad Num body Print NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr CompareGt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad body Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Call NameLoad BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults SubscriptLoad SubscriptLoad NameLoad Index Num Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr Print NameLoad AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr BinOpDiv NameLoad Call NameLoad BinOpSub NameLoad Num comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Assign NameStore ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr BinOpDiv Call NameLoad BinOpMod NameLoad NameLoad BinOpSub NameLoad Num comprehension NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Return NameLoad decorator_list
N/A N/A brewer2mpl brewer brew N/A N/A N n_cls reverse N/A True N/A N/A b N/A N/A N/A N/A N/A brewer get_map Blues Sequential N/A N 1 reverse reverse hex_colors N/A N N/A N/A N/A N/A brewer get_map Oranges Sequential N/A N 1 reverse reverse hex_colors N/A N N/A N/A N/A N/A brewer get_map Greens Sequential N/A N 1 reverse reverse hex_colors N/A N N/A N/A N/A N/A brewer get_map Purples Sequential N/A N 1 reverse reverse hex_colors N/A N N/A N/A N/A N/A brewer get_map Reds Sequential N/A N 1 reverse reverse hex_colors N/A N N/A N/A N/A N/A brewer get_map Greys Sequential N/A N 1 reverse reverse hex_colors N/A N N/A N/A b N/A n_cls N/A N/A category20c N/A N/A #3182bd #6baed6 #9ecae1 #c6dbef N/A #e6550d #fd8d3c #fdae6b #fdd0a2 N/A #31a354 #74c476 #a1d99b #c7e9c0 N/A #756bb1 #9e9ac8 #bcbddc #dadaeb N/A #636363 #969696 #bdbdbd #d9d9d9 N/A itertools N/A brewer2mpl brewer rgb2hex N/A N/A rgb N/A N/A N/A Given an rgb or rgba sequence of 0-1 floats, return the hex string N/A a N/A #%02x%02x%02x N/A tuple N/A N/A int N/A N/A np round N/A val 255 N/A val N/A rgb N/A 3 N/A a N/A collections defaultdict N/A networkx nx N/A numpy np get_topic_colors N/A N/A v N/A N/A N/A k N/A N/A v model K N/A mat N/A N/A v doc_topic_matrix N/A v labels N/A rs N/A defaultdict list N/A ss N/A N/A np zeros N/A N/A len mat k 2 N/A adj N/A N/A np zeros N/A k k N/A thresh 0.1 N/A cs 0 N/A N/A row_num row N/A enumerate mat N/A N/A order N/A N/A N/A row argsort N/A -1 N/A vals N/A N/A np cumsum N/A row N/A order N/A vals N/A N/A np insert vals 0 0.0 N/A ranges N/A N/A N/A np array N/A N/A vals N/A v N/A vals N/A N/A v 1 N/A v N/A range N/A N/A len vals 1 N/A N/A N/A vals N/A N/A v 1 N/A vals N/A v thresh N/A N/A i o N/A enumerate order N/A N/A N/A N/A N/A ss N/A row_num N/A o N/A 0 N/A vals N/A i N/A N/A N/A N/A ss N/A row_num N/A o N/A 1 N/A vals N/A N/A i 1 N/A vals N/A N/A np delete vals 0 N/A N/A i key val N/A zip N/A range N/A k 1 N/A order N/A -1 N/A order N/A 1 N/A N/A v N/A N/A vals N/A N/A i 1 N/A vals N/A i N/A N/A v thresh N/A N/A N/A N/A adj N/A key N/A val 1 N/A cs 1 N/A N/A i key val N/A zip N/A range 1 k N/A order N/A 1 N/A order N/A -1 N/A N/A v N/A N/A vals N/A i N/A vals N/A N/A i 1 N/A N/A v thresh N/A N/A N/A N/A adj N/A key N/A val 1 N/A cs 1 N/A N/A key val N/A zip N/A order N/A N/A len ranges ranges N/A N/A N/A N/A N/A rs N/A key append val N/A idxs N/A N/A N/A ss N/A N/A N/A N/A 1 N/A ss N/A N/A N/A N/A 0 thresh N/A cse 0 N/A N/A row topic N/A zip N/A N/A np where idxs N/A N/A idxs2 N/A N/A np logical_not N/A N/A np logical_or N/A N/A ss N/A N/A N/A N/A 1 N/A ss N/A N/A row topic 0 N/A N/A ss N/A N/A N/A N/A 0 N/A ss N/A N/A row topic 1 N/A candidates N/A N/A np logical_and idxs idxs2 N/A N/A row_ topic2 N/A zip N/A N/A np where candidates N/A N/A v N/A N/A min N/A N/A N/A ss N/A row N/A topic N/A 1 N/A N/A N/A ss N/A row_ N/A topic2 N/A 1 N/A max N/A N/A N/A ss N/A row_ N/A topic2 N/A 0 N/A N/A N/A ss N/A row N/A topic N/A 0 N/A N/A N/A v thresh N/A row row_ N/A N/A N/A N/A adj N/A topic N/A topic2 N/A N/A min 1.0 N/A v N/A N/A mat N/A row N/A topic 0.001 N/A cse N/A N/A min 1.0 N/A v N/A N/A mat N/A row N/A topic 0.001 N/A G N/A N/A nx Graph N/A i N/A range k N/A N/A N/A N/A G add_node i N/A weight N/A int N/A N/A cs cse N/A N/A 4 k k N/A ncolors None N/A N/A N/A ncolors None N/A ncolors 9 N/A N/A weight ncolors N/A colors N/A defaultdict int N/A N/A N/A G remove_edges_from N/A N/A G edges N/A N/A e1 e2 N/A zip N/A N/A np where N/A adj weight N/A N/A N/A N/A G add_edge e1 e2 weight N/A adj N/A N/A e1 e2 N/A n N/A sorted N/A N/A G nodes key N/A G degree reverse True N/A N/A neighbor_colors N/A N/A colors N/A nbr N/A nbr N/A N/A G neighbors n N/A colorgram N/A N/A np histogram N/A N/A colors values bins N/A range N/A N/A max N/A N/A colors values 2 N/A available_colors N/A c N/A c N/A N/A colors values N/A c neighbor_colors N/A available_colors N/A N/A N/A colors N/A n N/A min available_colors key N/A N/A N/A i N/A N/A N/A colorgram N/A 0 N/A i N/A N/A N/A colors N/A n N/A N/A max N/A N/A colors values 1 N/A ncolors N/A len N/A set N/A N/A colors values N/A ncolors N/A weight 1 N/A bmap N/A N/A brewer get_map Set1 Qualitative ncolors N/A topic_colors N/A N/A n N/A N/A bmap mpl_colormap N/A color N/A float N/A ncolors 1 N/A N/A n color N/A N/A colors iteritems N/A N/A N/A topic_colors sort key N/A N/A N/A x N/A N/A x N/A 0 N/A topic_colors N/A get_topic_colors N/A N/A v N/A N/A N/A ncolors 8 N/A bmap N/A N/A brewer get_map Set1 Qualitative ncolors N/A topic_colors N/A N/A n N/A N/A bmap mpl_colormap N/A N/A float N/A n ncolors N/A ncolors 1 N/A n N/A range N/A N/A v model K N/A N/A N/A topic_colors sort key N/A N/A N/A x N/A N/A x N/A 0 N/A topic_colors N/A