Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body Global identifier TryExcept body Import alias identifier Import alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Dict Num Num Num Num Num Num Num Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Num Num Dict Str Str Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Dict Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Dict Num Num Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num For NameStore ListLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict Num Num Num Num Num Num Num Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Dict Num Num Num Num Num BinOpDiv Num Num BinOpDiv Num Num Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Dict Num Num Num Num Num Num Num Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Dict Str Str Str Str Num Num Num Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num For NameStore ListLoad Str Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign NameStore Dict Num Num Num Num Num Num Num Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body Global identifier Global identifier TryExcept body Import alias identifier Import alias ImportFrom alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword BinOpMult Num NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword BinOpMult Num NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword BinOpMult NameLoad BinOpPow Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword BinOpMult Num NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Num Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword BinOpMult Num NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Num For NameStore ListLoad Str Str Str body Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword BinOpMult Num NameLoad Assign NameStore Dict Num Num Num Num Num Num Num Num For NameStore Call NameLoad NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body Global identifier TryExcept body Import alias identifier Import alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num For TupleStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num For TupleStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Dict TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Num Num Num Num For TupleStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Dict TupleLoad Num Num TupleLoad Num Num TupleLoad Num Num Num Num Num For TupleStore TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A nose.tools * nose SkipTest N/A networkx nose.plugins.attrib attr networkx edge_current_flow_betweenness_centrality edge_current_flow networkx approximate_current_flow_betweenness_centrality approximate_cfbc TestFlowBetweennessCentrality N/A object N/A N/A numpy 1 setupClass N/A N/A cls N/A N/A N/A np N/A N/A N/A numpy np N/A scipy N/A N/A N/A ImportError N/A N/A N/A SkipTest NumPy not available. N/A classmethod test_K4_normalized N/A N/A self N/A N/A N/A Betweenness centrality: K4 N/A G N/A N/A networkx complete_graph 4 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True N/A b_answer N/A 0 1 2 3 0.25 0.25 0.25 0.25 N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A b_answer N/A n N/A N/A N/A G add_edge 0 1 N/A weight other 0.5 0.3 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True weight None N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A b_answer N/A n N/A wb_answer N/A 0 1 2 3 0.2222222 0.2222222 0.30555555 0.30555555 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A wb_answer N/A n N/A wb_answer N/A 0 1 2 3 0.2051282 0.2051282 0.33974358 0.33974358 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True weight other N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A wb_answer N/A n N/A test_K4 N/A N/A self N/A N/A N/A Betweenness centrality: K4 N/A G N/A N/A networkx complete_graph 4 N/A solver N/A full lu cg N/A N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized False solver solver N/A b_answer N/A 0 1 2 3 0.75 0.75 0.75 0.75 N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A b_answer N/A n N/A test_P4_normalized N/A N/A self N/A N/A N/A Betweenness centrality: P4 normalized N/A G N/A N/A networkx path_graph 4 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True N/A b_answer N/A 0 1 2 3 0 N/A 2.0 3 N/A 2.0 3 0 N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A b_answer N/A n N/A test_P4 N/A N/A self N/A N/A N/A Betweenness centrality: P4 N/A G N/A N/A networkx path_graph 4 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized False N/A b_answer N/A 0 1 2 3 0 2 2 0 N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A b_answer N/A n N/A test_star N/A N/A self N/A N/A N/A Betweenness centrality: star  N/A G N/A N/A networkx Graph N/A N/A N/A G add_star N/A a b c d N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True N/A b_answer N/A a b c d 1.0 0.0 0.0 0.0 N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A b_answer N/A n N/A test_solers N/A N/A self N/A N/A N/A Betweenness centrality: alternate solvers N/A G N/A N/A networkx complete_graph 4 N/A solver N/A full lu cg N/A N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized False solver solver N/A b_answer N/A 0 1 2 3 0.75 0.75 0.75 0.75 N/A n N/A sorted G N/A N/A N/A assert_almost_equal N/A b N/A n N/A b_answer N/A n N/A N/A TestApproximateFlowBetweennessCentrality N/A object N/A N/A numpy 1 setupClass N/A N/A cls N/A N/A N/A np N/A assert_allclose N/A N/A N/A numpy np N/A scipy numpy.testing assert_allclose N/A N/A N/A ImportError N/A N/A N/A SkipTest NumPy not available. N/A classmethod test_K4_normalized N/A N/A self N/A N/A N/A Approximate current-flow betweenness centrality: K4 normalized N/A G N/A N/A networkx complete_graph 4 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True N/A epsilon 0.1 N/A ba N/A approximate_cfbc G normalized True epsilon N/A 0.5 epsilon N/A n N/A sorted G N/A N/A N/A assert_allclose N/A b N/A n N/A ba N/A n atol epsilon N/A test_K4 N/A N/A self N/A N/A N/A Approximate current-flow betweenness centrality: K4 N/A G N/A N/A networkx complete_graph 4 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized False N/A epsilon 0.1 N/A ba N/A approximate_cfbc G normalized False epsilon N/A 0.5 epsilon N/A n N/A sorted G N/A N/A N/A assert_allclose N/A b N/A n N/A ba N/A n atol N/A epsilon N/A N/A len G 2 N/A test_star N/A N/A self N/A N/A N/A Approximate current-flow betweenness centrality: star N/A G N/A N/A networkx Graph N/A N/A N/A G add_star N/A a b c d N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True N/A epsilon 0.1 N/A ba N/A approximate_cfbc G normalized True epsilon N/A 0.5 epsilon N/A n N/A sorted G N/A N/A N/A assert_allclose N/A b N/A n N/A ba N/A n atol epsilon N/A test_grid N/A N/A self N/A N/A N/A Approximate current-flow betweenness centrality: 2d grid N/A G N/A N/A networkx grid_2d_graph 4 4 N/A b N/A N/A networkx current_flow_betweenness_centrality G normalized True N/A epsilon 0.1 N/A ba N/A approximate_cfbc G normalized True epsilon N/A 0.5 epsilon N/A n N/A sorted G N/A N/A N/A assert_allclose N/A b N/A n N/A ba N/A n atol epsilon N/A test_solvers N/A N/A self N/A N/A N/A Approximate current-flow betweenness centrality: solvers N/A G N/A N/A networkx complete_graph 4 N/A epsilon 0.1 N/A solver N/A full lu cg N/A N/A b N/A approximate_cfbc G normalized False solver solver epsilon N/A 0.5 epsilon N/A b_answer N/A 0 1 2 3 0.75 0.75 0.75 0.75 N/A n N/A sorted G N/A N/A N/A assert_allclose N/A b N/A n N/A b_answer N/A n atol epsilon N/A N/A TestWeightedFlowBetweennessCentrality N/A object N/A N/A N/A TestEdgeFlowBetweennessCentrality N/A object N/A N/A numpy 1 setupClass N/A N/A cls N/A N/A N/A np N/A N/A N/A numpy np N/A scipy N/A N/A N/A ImportError N/A N/A N/A SkipTest NumPy not available. N/A classmethod test_K4 N/A N/A self N/A N/A N/A Edge flow betweenness centrality: K4 N/A G N/A N/A networkx complete_graph 4 N/A b N/A edge_current_flow G normalized True N/A b_answer N/A N/A dict fromkeys N/A N/A G edges 0.25 N/A N/A N/A s t v1 N/A N/A b_answer items N/A N/A v2 N/A N/A b get N/A s t N/A N/A b get N/A t s N/A N/A assert_almost_equal v1 v2 N/A test_K4_normalized N/A N/A self N/A N/A N/A Edge flow betweenness centrality: K4 N/A G N/A N/A networkx complete_graph 4 N/A b N/A edge_current_flow G normalized False N/A b_answer N/A N/A dict fromkeys N/A N/A G edges 0.75 N/A N/A N/A s t v1 N/A N/A b_answer items N/A N/A v2 N/A N/A b get N/A s t N/A N/A b get N/A t s N/A N/A assert_almost_equal v1 v2 N/A test_C4 N/A N/A self N/A N/A N/A Edge flow betweenness centrality: C4 N/A G N/A N/A networkx cycle_graph 4 N/A b N/A edge_current_flow G normalized False N/A b_answer N/A N/A 0 1 N/A 0 3 N/A 1 2 N/A 2 3 1.25 1.25 1.25 1.25 N/A N/A N/A s t v1 N/A N/A b_answer items N/A N/A v2 N/A N/A b get N/A s t N/A N/A b get N/A t s N/A N/A assert_almost_equal v1 v2 N/A test_P4 N/A N/A self N/A N/A N/A Edge betweenness centrality: P4 N/A G N/A N/A networkx path_graph 4 N/A b N/A edge_current_flow G normalized False N/A b_answer N/A N/A 0 1 N/A 1 2 N/A 2 3 1.5 2.0 1.5 N/A N/A N/A s t v1 N/A N/A b_answer items N/A N/A v2 N/A N/A b get N/A s t N/A N/A b get N/A t s N/A N/A assert_almost_equal v1 v2 N/A N/A