Module ImportFrom alias ImportFrom alias alias alias Import alias identifier ImportFrom alias alias alias ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults body Global identifier Global identifier TryExcept body Import alias identifier Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Num Num Assign AttributeStore NameLoad attr Call NameLoad Num keyword Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore ListComp BinOpAdd NameLoad Num comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad CompareEq Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Expr Call NameLoad CompareEq Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Num Num ListLoad Num Num Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AugAssignAdd NameStore ListLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr GeneratorExp TupleLoad NameLoad BinOpAdd NameLoad Num Call NameLoad keyword Num keyword Num comprehension NameStore Call NameLoad Num Assign NameStore Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad BinOpMult Num NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMult Num NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr ListLoad ListLoad Num attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad ListLoad TupleLoad Num Num keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str NameLoad Expr Call NameLoad Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str NameLoad Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Expr Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Num keyword Num Expr Call AttributeLoad NameLoad attr Num Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index TupleLoad Num Num Num decorator_list decorator_list
N/A nose SkipTest nose.tools assert_raises assert_true assert_equal N/A networkx nx networkx.generators.classic barbell_graph cycle_graph path_graph TestConvertNumpy N/A object N/A N/A numpy 1 setupClass N/A N/A cls N/A N/A N/A np N/A np_assert_equal N/A N/A N/A numpy np N/A np_assert_equal N/A N/A np testing assert_equal N/A N/A N/A ImportError N/A N/A N/A SkipTest NumPy not available. N/A classmethod __init__ N/A N/A self N/A N/A N/A N/A self G1 N/A barbell_graph 10 3 N/A N/A self G2 N/A cycle_graph 10 create_using N/A N/A nx DiGraph N/A N/A self G3 N/A N/A self create_weighted N/A N/A nx Graph N/A N/A self G4 N/A N/A self create_weighted N/A N/A nx DiGraph N/A create_weighted N/A N/A self G N/A N/A N/A g N/A cycle_graph 4 N/A e N/A N/A g edges N/A source N/A u N/A N/A u v e N/A dest N/A v N/A N/A u v e N/A weight N/A N/A s 10 N/A s source N/A ex N/A zip source dest weight N/A N/A N/A G add_weighted_edges_from ex N/A G N/A assert_equal N/A N/A self G1 G2 N/A N/A N/A N/A assert_true N/A N/A sorted N/A N/A G1 nodes N/A sorted N/A N/A G2 nodes N/A N/A assert_true N/A N/A sorted N/A N/A G1 edges N/A sorted N/A N/A G2 edges N/A identity_conversion N/A N/A self G A create_using N/A N/A N/A GG N/A N/A nx from_numpy_matrix A create_using create_using N/A N/A N/A self assert_equal G GG N/A GW N/A N/A nx to_networkx_graph A create_using create_using N/A N/A N/A self assert_equal G GW N/A GI N/A N/A create_using __class__ A N/A N/A N/A self assert_equal G GI N/A test_shape N/A N/A self N/A N/A N/A Conversion from non-square array. N/A A N/A N/A np array N/A N/A 1 2 3 N/A 4 5 6 N/A N/A assert_raises N/A nx NetworkXError N/A nx from_numpy_matrix A N/A test_identity_graph_matrix N/A N/A self N/A N/A N/A Conversion from graph to matrix to graph. N/A A N/A N/A nx to_numpy_matrix N/A self G1 N/A N/A N/A self identity_conversion N/A self G1 A N/A N/A nx Graph N/A test_identity_graph_array N/A N/A self N/A N/A N/A Conversion from graph to array to graph. N/A A N/A N/A nx to_numpy_matrix N/A self G1 N/A A N/A N/A np asarray A N/A N/A N/A self identity_conversion N/A self G1 A N/A N/A nx Graph N/A test_identity_digraph_matrix N/A N/A self N/A N/A N/A Conversion from digraph to matrix to digraph. N/A A N/A N/A nx to_numpy_matrix N/A self G2 N/A N/A N/A self identity_conversion N/A self G2 A N/A N/A nx DiGraph N/A test_identity_digraph_array N/A N/A self N/A N/A N/A Conversion from digraph to array to digraph. N/A A N/A N/A nx to_numpy_matrix N/A self G2 N/A A N/A N/A np asarray A N/A N/A N/A self identity_conversion N/A self G2 A N/A N/A nx DiGraph N/A test_identity_weighted_graph_matrix N/A N/A self N/A N/A N/A Conversion from weighted graph to matrix to weighted graph. N/A A N/A N/A nx to_numpy_matrix N/A self G3 N/A N/A N/A self identity_conversion N/A self G3 A N/A N/A nx Graph N/A test_identity_weighted_graph_array N/A N/A self N/A N/A N/A Conversion from weighted graph to array to weighted graph. N/A A N/A N/A nx to_numpy_matrix N/A self G3 N/A A N/A N/A np asarray A N/A N/A N/A self identity_conversion N/A self G3 A N/A N/A nx Graph N/A test_identity_weighted_digraph_matrix N/A N/A self N/A N/A N/A Conversion from weighted digraph to matrix to weighted digraph. N/A A N/A N/A nx to_numpy_matrix N/A self G4 N/A N/A N/A self identity_conversion N/A self G4 A N/A N/A nx DiGraph N/A test_identity_weighted_digraph_array N/A N/A self N/A N/A N/A Conversion from weighted digraph to array to weighted digraph. N/A A N/A N/A nx to_numpy_matrix N/A self G4 N/A A N/A N/A np asarray A N/A N/A N/A self identity_conversion N/A self G4 A N/A N/A nx DiGraph N/A test_nodelist N/A N/A self N/A N/A N/A Conversion from graph to matrix to graph with nodelist. N/A P4 N/A path_graph 4 N/A P3 N/A path_graph 3 N/A nodelist N/A N/A P3 nodes N/A A N/A N/A nx to_numpy_matrix P4 nodelist nodelist N/A GA N/A N/A nx Graph A N/A N/A N/A self assert_equal GA P3 N/A nodelist N/A N/A nodelist N/A 0 N/A N/A assert_raises N/A nx NetworkXError N/A nx to_numpy_matrix P3 nodelist nodelist N/A test_weight_keyword N/A N/A self N/A N/A N/A WP4 N/A N/A nx Graph N/A N/A N/A WP4 add_edges_from N/A N/A n N/A n 1 N/A dict weight 0.5 other 0.3 N/A n N/A range 3 N/A P4 N/A path_graph 4 N/A A N/A N/A nx to_numpy_matrix P4 N/A N/A np_assert_equal A N/A N/A nx to_numpy_matrix WP4 weight None N/A N/A np_assert_equal N/A 0.5 A N/A N/A nx to_numpy_matrix WP4 N/A N/A np_assert_equal N/A 0.3 A N/A N/A nx to_numpy_matrix WP4 weight other N/A test_from_numpy_matrix_type N/A N/A self N/A N/A N/A A N/A N/A np matrix N/A N/A 1 N/A G N/A N/A nx from_numpy_matrix A N/A N/A assert_equal N/A type N/A N/A N/A G N/A 0 N/A 0 N/A weight int N/A A N/A N/A N/A N/A np matrix N/A N/A 1 astype N/A np float N/A G N/A N/A nx from_numpy_matrix A N/A N/A assert_equal N/A type N/A N/A N/A G N/A 0 N/A 0 N/A weight float N/A A N/A N/A N/A N/A np matrix N/A N/A 1 astype N/A np str N/A G N/A N/A nx from_numpy_matrix A N/A N/A assert_equal N/A type N/A N/A N/A G N/A 0 N/A 0 N/A weight str N/A A N/A N/A N/A N/A np matrix N/A N/A 1 astype N/A np bool N/A G N/A N/A nx from_numpy_matrix A N/A N/A assert_equal N/A type N/A N/A N/A G N/A 0 N/A 0 N/A weight bool N/A A N/A N/A N/A N/A np matrix N/A N/A 1 astype N/A np complex N/A G N/A N/A nx from_numpy_matrix A N/A N/A assert_equal N/A type N/A N/A N/A G N/A 0 N/A 0 N/A weight complex N/A A N/A N/A N/A N/A np matrix N/A N/A 1 astype N/A np object N/A N/A assert_raises TypeError N/A nx from_numpy_matrix A N/A test_from_numpy_matrix_dtype N/A N/A self N/A N/A N/A dt N/A N/A weight float N/A cost int N/A A N/A N/A np matrix N/A N/A N/A 1.0 2 dtype dt N/A G N/A N/A nx from_numpy_matrix A N/A N/A assert_equal N/A type N/A N/A N/A G N/A 0 N/A 0 N/A weight float N/A N/A assert_equal N/A type N/A N/A N/A G N/A 0 N/A 0 N/A cost int N/A N/A assert_equal N/A N/A N/A G N/A 0 N/A 0 N/A cost 2 N/A N/A assert_equal N/A N/A N/A G N/A 0 N/A 0 N/A weight 1.0 N/A test_to_numpy_recarray N/A N/A self N/A N/A N/A G N/A N/A nx Graph N/A N/A N/A G add_edge 1 2 weight 7.0 cost 5 N/A A N/A N/A nx to_numpy_recarray G dtype N/A N/A weight float N/A cost int N/A N/A assert_equal N/A sorted N/A N/A A dtype names N/A cost weight N/A N/A assert_equal N/A N/A A weight N/A N/A 0 1 7.0 N/A N/A assert_equal N/A N/A A weight N/A N/A 0 0 0.0 N/A N/A assert_equal N/A N/A A cost N/A N/A 0 1 5 N/A N/A assert_equal N/A N/A A cost N/A N/A 0 0 0 N/A test_numpy_multigraph N/A N/A self N/A N/A N/A G N/A N/A nx MultiGraph N/A N/A N/A G add_edge 1 2 weight 7 N/A N/A N/A G add_edge 1 2 weight 70 N/A A N/A N/A nx to_numpy_matrix G N/A N/A assert_equal N/A A N/A N/A 1 0 77 N/A A N/A N/A nx to_numpy_matrix G multigraph_weight min N/A N/A assert_equal N/A A N/A N/A 1 0 7 N/A A N/A N/A nx to_numpy_matrix G multigraph_weight max N/A N/A assert_equal N/A A N/A N/A 1 0 70 N/A N/A