From 856757b9318aaeea3fa018c7cbb831fb7c0ff5b5 Mon Sep 17 00:00:00 2001 From: Navya Agarwal Date: Wed, 8 Mar 2023 01:24:03 +0530 Subject: [PATCH 1/4] Create nx_version.txt --- 2023-round-1/navyagarwal/nx_version.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 2023-round-1/navyagarwal/nx_version.txt diff --git a/2023-round-1/navyagarwal/nx_version.txt b/2023-round-1/navyagarwal/nx_version.txt new file mode 100644 index 0000000..c3e2bd4 --- /dev/null +++ b/2023-round-1/navyagarwal/nx_version.txt @@ -0,0 +1 @@ +2.8.8 \ No newline at end of file From 568410ed59223c6d192348200f9e4e6a220e2597 Mon Sep 17 00:00:00 2001 From: Navya Agarwal Date: Wed, 8 Mar 2023 01:32:46 +0530 Subject: [PATCH 2/4] Create nx_dev_test_output.txt --- .../navyagarwal/nx_dev_test_output.txt | 370 ++++++++++++++++++ 1 file changed, 370 insertions(+) create mode 100644 2023-round-1/navyagarwal/nx_dev_test_output.txt diff --git a/2023-round-1/navyagarwal/nx_dev_test_output.txt b/2023-round-1/navyagarwal/nx_dev_test_output.txt new file mode 100644 index 0000000..1424293 --- /dev/null +++ b/2023-round-1/navyagarwal/nx_dev_test_output.txt @@ -0,0 +1,370 @@ +============================= test session starts ============================= +platform win32 -- Python 3.10.7, pytest-7.2.2, pluggy-1.0.0 +rootdir: E:\OSS\NetworkX\networkx +plugins: anyio-3.6.2, hydra-core-1.3.2, typeguard-2.13.3 +collected 5072 items / 2 skipped + +networkx\algorithms\approximation\tests\test_approx_clust_coeff.py ..... [ 0%] +. [ 0%] +networkx\algorithms\approximation\tests\test_clique.py ........ [ 0%] +networkx\algorithms\approximation\tests\test_connectivity.py ........... [ 0%] +....... [ 0%] +networkx\algorithms\approximation\tests\test_distance_measures.py ...... [ 0%] +.. [ 0%] +networkx\algorithms\approximation\tests\test_dominating_set.py .... [ 0%] +networkx\algorithms\approximation\tests\test_kcomponents.py ............ [ 1%] +.... [ 1%] +networkx\algorithms\approximation\tests\test_matching.py . [ 1%] +networkx\algorithms\approximation\tests\test_maxcut.py ..... [ 1%] +networkx\algorithms\approximation\tests\test_ramsey.py . [ 1%] +networkx\algorithms\approximation\tests\test_steinertree.py .... [ 1%] +networkx\algorithms\approximation\tests\test_traveling_salesman.py ..... [ 1%] +....................................s. [ 2%] +networkx\algorithms\approximation\tests\test_treewidth.py .............. [ 2%] + [ 2%] +networkx\algorithms\approximation\tests\test_vertex_cover.py .... [ 2%] +networkx\algorithms\assortativity\tests\test_connectivity.py .......... [ 2%] +networkx\algorithms\assortativity\tests\test_correlation.py ............ [ 3%] +....... [ 3%] +networkx\algorithms\assortativity\tests\test_mixing.py ................. [ 3%] +.. [ 3%] +networkx\algorithms\assortativity\tests\test_neighbor_degree.py ...... [ 3%] +networkx\algorithms\assortativity\tests\test_pairs.py ........... [ 3%] +networkx\algorithms\bipartite\tests\test_basic.py ............... [ 4%] +networkx\algorithms\bipartite\tests\test_centrality.py ....... [ 4%] +networkx\algorithms\bipartite\tests\test_cluster.py ......... [ 4%] +networkx\algorithms\bipartite\tests\test_covering.py .... [ 4%] +networkx\algorithms\bipartite\tests\test_edgelist.py .............. [ 4%] +networkx\algorithms\bipartite\tests\test_generators.py .......... [ 5%] +networkx\algorithms\bipartite\tests\test_matching.py ................... [ 5%] +. [ 5%] +networkx\algorithms\bipartite\tests\test_matrix.py ........... [ 5%] +networkx\algorithms\bipartite\tests\test_project.py .................. [ 6%] +networkx\algorithms\bipartite\tests\test_redundancy.py ... [ 6%] +networkx\algorithms\bipartite\tests\test_spectral_bipartivity.py ... [ 6%] +networkx\algorithms\centrality\tests\test_betweenness_centrality.py .... [ 6%] +..................................... [ 6%] +networkx\algorithms\centrality\tests\test_betweenness_centrality_subset.py . [ 6%] +..................... [ 7%] +networkx\algorithms\centrality\tests\test_closeness_centrality.py ...... [ 7%] +....... [ 7%] +networkx\algorithms\centrality\tests\test_current_flow_betweenness_centrality.py . [ 7%] +................... [ 8%] +networkx\algorithms\centrality\tests\test_current_flow_betweenness_centrality_subset.py . [ 8%] +........ [ 8%] +networkx\algorithms\centrality\tests\test_current_flow_closeness.py ... [ 8%] +networkx\algorithms\centrality\tests\test_degree_centrality.py ....... [ 8%] +networkx\algorithms\centrality\tests\test_dispersion.py .... [ 8%] +networkx\algorithms\centrality\tests\test_eigenvector_centrality.py .... [ 8%] +......... [ 8%] +networkx\algorithms\centrality\tests\test_group.py ..................... [ 9%] +... [ 9%] +networkx\algorithms\centrality\tests\test_harmonic_centrality.py ....... [ 9%] +...... [ 9%] +networkx\algorithms\centrality\tests\test_katz_centrality.py ........... [ 9%] +............... [ 9%] +networkx\algorithms\centrality\tests\test_laplacian_centrality.py ...... [ 10%] +. [ 10%] +networkx\algorithms\centrality\tests\test_load_centrality.py ........... [ 10%] +....... [ 10%] +networkx\algorithms\centrality\tests\test_percolation_centrality.py ... [ 10%] +networkx\algorithms\centrality\tests\test_reaching.py .............. [ 10%] +networkx\algorithms\centrality\tests\test_second_order_centrality.py ... [ 10%] +.... [ 10%] +networkx\algorithms\centrality\tests\test_subgraph.py ..... [ 11%] +networkx\algorithms\centrality\tests\test_trophic.py .......... [ 11%] +networkx\algorithms\centrality\tests\test_voterank.py ...... [ 11%] +networkx\algorithms\coloring\tests\test_coloring.py ................. [ 11%] +networkx\algorithms\community\tests\test_asyn_fluid.py ..... [ 11%] +networkx\algorithms\community\tests\test_centrality.py ..... [ 11%] +networkx\algorithms\community\tests\test_kclique.py ........ [ 12%] +networkx\algorithms\community\tests\test_kernighan_lin.py ........ [ 12%] +networkx\algorithms\community\tests\test_label_propagation.py .......... [ 12%] +. [ 12%] +networkx\algorithms\community\tests\test_louvain.py .......... [ 12%] +networkx\algorithms\community\tests\test_lukes.py .... [ 12%] +networkx\algorithms\community\tests\test_modularity_max.py ............. [ 12%] +..... [ 13%] +networkx\algorithms\community\tests\test_quality.py ....... [ 13%] +networkx\algorithms\community\tests\test_utils.py .... [ 13%] +networkx\algorithms\components\tests\test_attracting.py .... [ 13%] +networkx\algorithms\components\tests\test_biconnected.py ............. [ 13%] +networkx\algorithms\components\tests\test_connected.py ........ [ 13%] +networkx\algorithms\components\tests\test_semiconnected.py ........ [ 13%] +networkx\algorithms\components\tests\test_strongly_connected.py ........ [ 14%] +...... [ 14%] +networkx\algorithms\components\tests\test_weakly_connected.py ...... [ 14%] +networkx\algorithms\connectivity\tests\test_connectivity.py ............ [ 14%] +...................... [ 14%] +networkx\algorithms\connectivity\tests\test_cuts.py .................... [ 15%] +. [ 15%] +networkx\algorithms\connectivity\tests\test_disjoint_paths.py .......... [ 15%] +........ [ 15%] +networkx\algorithms\connectivity\tests\test_edge_augmentation.py ....... [ 15%] +............. [ 16%] +networkx\algorithms\connectivity\tests\test_edge_kcomponents.py ........ [ 16%] +............. [ 16%] +networkx\algorithms\connectivity\tests\test_kcomponents.py .sss...... [ 16%] +networkx\algorithms\connectivity\tests\test_kcutsets.py s........s..... [ 17%] +networkx\algorithms\connectivity\tests\test_stoer_wagner.py ..... [ 17%] +networkx\algorithms\flow\tests\test_gomory_hu.py ....s.... [ 17%] +networkx\algorithms\flow\tests\test_maxflow.py ......................... [ 17%] +.. [ 17%] +networkx\algorithms\flow\tests\test_maxflow_large_graph.py ...s.. [ 17%] +networkx\algorithms\flow\tests\test_mincost.py ................... [ 18%] +networkx\algorithms\flow\tests\test_networksimplex.py .................. [ 18%] +.... [ 18%] +networkx\algorithms\isomorphism\tests\test_ismags.py .......... [ 18%] +networkx\algorithms\isomorphism\tests\test_isomorphism.py .... [ 19%] +networkx\algorithms\isomorphism\tests\test_isomorphvf2.py .............. [ 19%] +.. [ 19%] +networkx\algorithms\isomorphism\tests\test_match_helpers.py .. [ 19%] +networkx\algorithms\isomorphism\tests\test_temporalisomorphvf2.py ...... [ 19%] +...... [ 19%] +networkx\algorithms\isomorphism\tests\test_tree_isomorphism.py ..... [ 19%] +networkx\algorithms\isomorphism\tests\test_vf2pp.py .................... [ 20%] +........................ [ 20%] +networkx\algorithms\isomorphism\tests\test_vf2pp_helpers.py ............ [ 20%] +................................. [ 21%] +networkx\algorithms\isomorphism\tests\test_vf2userfunc.py .............. [ 21%] +.............. [ 22%] +networkx\algorithms\link_analysis\tests\test_hits.py ...... [ 22%] +networkx\algorithms\link_analysis\tests\test_pagerank.py ............... [ 22%] +................................... [ 23%] +networkx\algorithms\minors\tests\test_contraction.py ................... [ 23%] +............ [ 23%] +networkx\algorithms\operators\tests\test_all.py .................. [ 24%] +networkx\algorithms\operators\tests\test_binary.py .................... [ 24%] +networkx\algorithms\operators\tests\test_product.py .................... [ 24%] +........ [ 25%] +networkx\algorithms\operators\tests\test_unary.py ... [ 25%] +networkx\algorithms\shortest_paths\tests\test_astar.py .............. [ 25%] +networkx\algorithms\shortest_paths\tests\test_dense.py ........ [ 25%] +networkx\algorithms\shortest_paths\tests\test_dense_numpy.py ....... [ 25%] +networkx\algorithms\shortest_paths\tests\test_generic.py ............... [ 26%] +........ [ 26%] +networkx\algorithms\shortest_paths\tests\test_unweighted.py ............ [ 26%] +..... [ 26%] +networkx\algorithms\shortest_paths\tests\test_weighted.py .............. [ 26%] +....................................... [ 27%] +networkx\algorithms\tests\test_asteroidal.py . [ 27%] +networkx\algorithms\tests\test_boundary.py ............. [ 27%] +networkx\algorithms\tests\test_bridges.py .......... [ 28%] +networkx\algorithms\tests\test_chains.py ..... [ 28%] +networkx\algorithms\tests\test_chordal.py .......... [ 28%] +networkx\algorithms\tests\test_clique.py ................ [ 28%] +networkx\algorithms\tests\test_cluster.py .............................. [ 29%] +............. [ 29%] +networkx\algorithms\tests\test_communicability.py .. [ 29%] +networkx\algorithms\tests\test_core.py ............... [ 29%] +networkx\algorithms\tests\test_covering.py ........... [ 30%] +networkx\algorithms\tests\test_cuts.py ................. [ 30%] +networkx\algorithms\tests\test_cycles.py ............................... [ 30%] +.... [ 31%] +networkx\algorithms\tests\test_d_separation.py .............. [ 31%] +networkx\algorithms\tests\test_dag.py .................................. [ 31%] +.......................... [ 32%] +networkx\algorithms\tests\test_distance_measures.py .................... [ 32%] +................................... [ 33%] +networkx\algorithms\tests\test_distance_regular.py ....... [ 33%] +networkx\algorithms\tests\test_dominance.py ...................... [ 34%] +networkx\algorithms\tests\test_dominating.py ..... [ 34%] +networkx\algorithms\tests\test_efficiency.py ....... [ 34%] +networkx\algorithms\tests\test_euler.py .............................. [ 34%] +networkx\algorithms\tests\test_graph_hashing.py ........................ [ 35%] + [ 35%] +networkx\algorithms\tests\test_graphical.py ............. [ 35%] +networkx\algorithms\tests\test_hierarchy.py ..... [ 35%] +networkx\algorithms\tests\test_hybrid.py .. [ 35%] +networkx\algorithms\tests\test_isolate.py ... [ 35%] +networkx\algorithms\tests\test_link_prediction.py ...................... [ 36%] +................................................... [ 37%] +networkx\algorithms\tests\test_lowest_common_ancestors.py .............. [ 37%] +......................................... [ 38%] +networkx\algorithms\tests\test_matching.py ............................. [ 39%] +................... [ 39%] +networkx\algorithms\tests\test_max_weight_clique.py ..... [ 39%] +networkx\algorithms\tests\test_mis.py ....... [ 39%] +networkx\algorithms\tests\test_moral.py . [ 39%] +networkx\algorithms\tests\test_node_classification.py ............... [ 39%] +networkx\algorithms\tests\test_non_randomness.py ...... [ 40%] +networkx\algorithms\tests\test_planar_drawing.py ............ [ 40%] +networkx\algorithms\tests\test_planarity.py ............................ [ 40%] +.. [ 40%] +networkx\algorithms\tests\test_reciprocity.py ..... [ 40%] +networkx\algorithms\tests\test_regular.py ............. [ 41%] +networkx\algorithms\tests\test_richclub.py ......... [ 41%] +networkx\algorithms\tests\test_similarity.py ........................... [ 41%] +.................. [ 42%] +networkx\algorithms\tests\test_simple_paths.py ......................... [ 42%] +................................................. [ 43%] +networkx\algorithms\tests\test_smallworld.py ...... [ 43%] +networkx\algorithms\tests\test_smetric.py .. [ 43%] +networkx\algorithms\tests\test_sparsifiers.py ....... [ 44%] +networkx\algorithms\tests\test_structuralholes.py ............ [ 44%] +networkx\algorithms\tests\test_summarization.py ................. [ 44%] +networkx\algorithms\tests\test_swap.py ..................... [ 45%] +networkx\algorithms\tests\test_threshold.py .................. [ 45%] +networkx\algorithms\tests\test_tournament.py ..................... [ 45%] +networkx\algorithms\tests\test_triads.py ................ [ 46%] +networkx\algorithms\tests\test_vitality.py ...... [ 46%] +networkx\algorithms\tests\test_voronoi.py .......... [ 46%] +networkx\algorithms\tests\test_wiener.py .... [ 46%] +networkx\algorithms\traversal\tests\test_beamsearch.py ... [ 46%] +networkx\algorithms\traversal\tests\test_bfs.py ................. [ 46%] +networkx\algorithms\traversal\tests\test_dfs.py .................. [ 47%] +networkx\algorithms\traversal\tests\test_edgebfs.py ................ [ 47%] +networkx\algorithms\traversal\tests\test_edgedfs.py ............... [ 47%] +networkx\algorithms\tree\tests\test_branchings.py ...................... [ 48%] +..... [ 48%] +networkx\algorithms\tree\tests\test_coding.py .............. [ 48%] +networkx\algorithms\tree\tests\test_decomposition.py ..... [ 48%] +networkx\algorithms\tree\tests\test_mst.py ............................. [ 49%] +..................s.s [ 49%] +networkx\algorithms\tree\tests\test_operations.py ... [ 49%] +networkx\algorithms\tree\tests\test_recognition.py ..................... [ 50%] +.... [ 50%] +networkx\classes\tests\test_coreviews.py ............................... [ 50%] +......................... [ 51%] +networkx\classes\tests\test_digraph.py ................................. [ 52%] +................................................... [ 53%] +networkx\classes\tests\test_digraph_historical.py ...................... [ 53%] +.................... [ 53%] +networkx\classes\tests\test_filters.py ........... [ 54%] +networkx\classes\tests\test_function.py ................................ [ 54%] +....................................... [ 55%] +networkx\classes\tests\test_graph.py ................................... [ 56%] +............................. [ 56%] +networkx\classes\tests\test_graph_historical.py ........................ [ 57%] +.......... [ 57%] +networkx\classes\tests\test_graphviews.py .............................. [ 58%] +..... [ 58%] +networkx\classes\tests\test_multidigraph.py ............................ [ 58%] +........................................................................ [ 60%] +........................................................................ [ 61%] +............... [ 61%] +networkx\classes\tests\test_multigraph.py .............................. [ 62%] +........................................................................ [ 63%] +................................................... [ 64%] +networkx\classes\tests\test_reportviews.py ............................. [ 65%] +........................................................................ [ 66%] +........................................................................ [ 68%] +.................................................................... [ 69%] +networkx\classes\tests\test_special.py ................................. [ 70%] +........................................................................ [ 71%] +........................................................................ [ 73%] +........................................................................ [ 74%] +........................................................................ [ 75%] +........................... [ 76%] +networkx\classes\tests\test_subgraphviews.py ........................... [ 77%] +..... [ 77%] +networkx\drawing\tests\test_latex.py ...... [ 77%] +networkx\drawing\tests\test_layout.py .............................. [ 77%] +networkx\drawing\tests\test_pydot.py xxx...... [ 77%] +networkx\drawing\tests\test_pylab.py ................................... [ 78%] +.............................................................. [ 79%] +networkx\generators\tests\test_atlas.py ........ [ 80%] +networkx\generators\tests\test_classic.py .............................. [ 80%] +....... [ 80%] +networkx\generators\tests\test_cographs.py . [ 80%] +networkx\generators\tests\test_community.py ...................... [ 81%] +networkx\generators\tests\test_degree_seq.py ................... [ 81%] +networkx\generators\tests\test_directed.py .......... [ 81%] +networkx\generators\tests\test_duplication.py ....... [ 81%] +networkx\generators\tests\test_ego.py .. [ 81%] +networkx\generators\tests\test_expanders.py .......................... [ 82%] +networkx\generators\tests\test_geometric.py ........................ [ 82%] +networkx\generators\tests\test_harary_graph.py .. [ 83%] +networkx\generators\tests\test_internet_as_graphs.py ..... [ 83%] +networkx\generators\tests\test_intersection.py .... [ 83%] +networkx\generators\tests\test_interval_graph.py ........ [ 83%] +networkx\generators\tests\test_joint_degree_seq.py .... [ 83%] +networkx\generators\tests\test_lattice.py ....................... [ 83%] +networkx\generators\tests\test_line.py ................................. [ 84%] +.. [ 84%] +networkx\generators\tests\test_mycielski.py ... [ 84%] +networkx\generators\tests\test_nonisomorphic_trees.py ..... [ 84%] +networkx\generators\tests\test_random_clustered.py .... [ 84%] +networkx\generators\tests\test_random_graphs.py ........................ [ 85%] +....................................... [ 86%] +networkx\generators\tests\test_small.py ................................ [ 86%] +...... [ 86%] +networkx\generators\tests\test_spectral_graph_forge.py . [ 86%] +networkx\generators\tests\test_stochastic.py ....... [ 86%] +networkx\generators\tests\test_sudoku.py ...... [ 87%] +networkx\generators\tests\test_trees.py ......... [ 87%] +networkx\generators\tests\test_triads.py .. [ 87%] +networkx\linalg\tests\test_algebraic_connectivity.py ................... [ 87%] +.................................................................... [ 89%] +networkx\linalg\tests\test_attrmatrix.py ..... [ 89%] +networkx\linalg\tests\test_bethehessian.py . [ 89%] +networkx\linalg\tests\test_graphmatrix.py .... [ 89%] +networkx\linalg\tests\test_laplacian.py .... [ 89%] +networkx\linalg\tests\test_modularity.py ... [ 89%] +networkx\linalg\tests\test_spectrum.py ..... [ 89%] +networkx\readwrite\json_graph\tests\test_adjacency.py ...... [ 89%] +networkx\readwrite\json_graph\tests\test_cytoscape.py ....... [ 89%] +networkx\readwrite\json_graph\tests\test_node_link.py ............ [ 89%] +networkx\readwrite\json_graph\tests\test_tree.py ... [ 90%] +networkx\readwrite\tests\test_adjlist.py .................. [ 90%] +networkx\readwrite\tests\test_edgelist.py .......................... [ 90%] +networkx\readwrite\tests\test_gexf.py ..................... [ 91%] +networkx\readwrite\tests\test_gml.py ....................... [ 91%] +networkx\readwrite\tests\test_graph6.py ............................... [ 92%] +networkx\readwrite\tests\test_graphml.py ..................sssssssssssss [ 92%] +ssssssssssssssssssssssssssssss [ 93%] +networkx\readwrite\tests\test_leda.py .. [ 93%] +networkx\readwrite\tests\test_p2g.py ... [ 93%] +networkx\readwrite\tests\test_pajek.py ........ [ 93%] +networkx\readwrite\tests\test_sparse6.py ................ [ 94%] +networkx\readwrite\tests\test_text.py .......................... [ 94%] +networkx\tests\test_all_random_functions.py s [ 94%] +networkx\tests\test_convert.py ............... [ 94%] +networkx\tests\test_convert_numpy.py ................................... [ 95%] +.......... [ 95%] +networkx\tests\test_convert_pandas.py ...................... [ 96%] +networkx\tests\test_convert_scipy.py .................... [ 96%] +networkx\tests\test_exceptions.py ....... [ 96%] +networkx\tests\test_import.py .. [ 96%] +networkx\tests\test_lazy_imports.py .... [ 96%] +networkx\tests\test_relabel.py .............................. [ 97%] +networkx\utils\tests\test__init.py . [ 97%] +networkx\utils\tests\test_decorators.py ................................ [ 98%] +... [ 98%] +networkx\utils\tests\test_heaps.py .. [ 98%] +networkx\utils\tests\test_mapped_queue.py .............................. [ 98%] +................ [ 99%] +networkx\utils\tests\test_misc.py ............................... [ 99%] +networkx\utils\tests\test_random_sequence.py .... [ 99%] +networkx\utils\tests\test_rcm.py .. [ 99%] +networkx\utils\tests\test_unionfind.py ..... [100%] + +============================== warnings summary =============================== +networkx\drawing\tests\test_pylab.py:422 + E:\OSS\NetworkX\networkx\networkx\drawing\tests\test_pylab.py:422: PytestUnknownMarkWarning: Unknown pytest.mark.mpl_image_compare - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html + @pytest.mark.mpl_image_compare + +networkx/drawing/tests/test_pylab.py::test_house_with_colors + C:\Users\navya\AppData\Local\Programs\Python\Python310\lib\site-packages\_pytest\python.py:199: PytestReturnNotNoneWarning: Expected None, but networkx/drawing/tests/test_pylab.py::test_house_with_colors returned
, which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? + warnings.warn( + +networkx/linalg/tests/test_algebraic_connectivity.py::TestSpectralOrdering::test_cycle[lobpcg-False-expected_order0] + E:\OSS\NetworkX\networkx\networkx\linalg\algebraicconnectivity.py:304: UserWarning: Exited at iteration 10 with accuracies + [0.02743716] + not reaching the requested tolerance 1e-08. + sigma, X = sp.sparse.linalg.lobpcg( + +networkx/linalg/tests/test_algebraic_connectivity.py::TestSpectralOrdering::test_cycle[lobpcg-True-expected_order1] + E:\OSS\NetworkX\networkx\networkx\linalg\algebraicconnectivity.py:304: UserWarning: Exited at iteration 10 with accuracies + [0.00056623] + not reaching the requested tolerance 1e-08. + sigma, X = sp.sparse.linalg.lobpcg( + +networkx/readwrite/tests/test_text.py: 16 warnings + E:\OSS\NetworkX\networkx\networkx\readwrite\text.py:541: DeprecationWarning: + forest_str is deprecated as of version 3.1 and will be removed in version 3.3. Use generate_network_text or write_network_text instead. + + warnings.warn(msg, DeprecationWarning) + +-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html +==== 5015 passed, 56 skipped, 3 xfailed, 20 warnings in 175.78s (0:02:55) ===== From 05244a2f2de8d489eef9ee8484c88e8de98b8ee5 Mon Sep 17 00:00:00 2001 From: Navya Agarwal Date: Wed, 8 Mar 2023 20:07:08 +0530 Subject: [PATCH 3/4] Outreachy tasks #3 and #4 --- 2023-round-1/navyagarwal/nx_pull_requests.txt | 1 + .../navyagarwal/nx_tutorial_script.py | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 2023-round-1/navyagarwal/nx_pull_requests.txt create mode 100644 2023-round-1/navyagarwal/nx_tutorial_script.py diff --git a/2023-round-1/navyagarwal/nx_pull_requests.txt b/2023-round-1/navyagarwal/nx_pull_requests.txt new file mode 100644 index 0000000..27db53a --- /dev/null +++ b/2023-round-1/navyagarwal/nx_pull_requests.txt @@ -0,0 +1 @@ +1. https://github.com/networkx/networkx/pull/6474 \ No newline at end of file diff --git a/2023-round-1/navyagarwal/nx_tutorial_script.py b/2023-round-1/navyagarwal/nx_tutorial_script.py new file mode 100644 index 0000000..c81ff28 --- /dev/null +++ b/2023-round-1/navyagarwal/nx_tutorial_script.py @@ -0,0 +1,49 @@ +# imports +import networkx as nx +import matplotlib.pyplot as plt + +# DiGraph -> Direted graph that can contain self-loops but not parallel edges +G = nx.DiGraph() + +# various methods to add nodes of different data types +G.add_node(1) # integer +G.add_node('navya') # string +G.add_node((3, 4)) # tuple +G.add_nodes_from(['a', 'b']) # from list +G.add_nodes_from(range(9, 11)) # in range + +X = nx.path_graph(2) +Y = nx.complete_graph(3) + +G.add_nodes_from(X) # from graph X +G.add_node(Y) # graph Y + + + +# can add individual or multiple edges to graph +G.add_edge(1, 'navya') +G.add_edges_from([ + ('a', 'b'), + ('navya', 1), + (X, Y), + (9, X), + (Y, 'navya'), + ('b', 10), + (10, Y), + ('navya', 9), + ((3, 4), 0), + ('a', 9), + (0, 'b'), + (9, 10)]) +G.add_edges_from(X.edges) +G.add_edges_from(Y.edges) + + +nx.draw(G, with_labels = True, node_color = 'yellow') + + +# printing shortest path between all pairs of nodes if it exists +for source in G: + for dest in G: + if(nx.has_path(G, source, dest)): + print(source, " -> ", dest," : ", nx.shortest_path(G, source, dest)) \ No newline at end of file From 6166ccfe2255ce848e5a76ab4847bf35b9307e26 Mon Sep 17 00:00:00 2001 From: Navya Agarwal Date: Wed, 8 Mar 2023 20:11:51 +0530 Subject: [PATCH 4/4] Upgrade version to 3.0 --- 2023-round-1/navyagarwal/nx_version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2023-round-1/navyagarwal/nx_version.txt b/2023-round-1/navyagarwal/nx_version.txt index c3e2bd4..f398a20 100644 --- a/2023-round-1/navyagarwal/nx_version.txt +++ b/2023-round-1/navyagarwal/nx_version.txt @@ -1 +1 @@ -2.8.8 \ No newline at end of file +3.0 \ No newline at end of file