From 8c3cfec6932f2face3546933ab30a1e3028b6ea6 Mon Sep 17 00:00:00 2001 From: MANSI SINGH <76874762+singhmansi25@users.noreply.github.com> Date: Sat, 2 Apr 2022 23:45:00 +0530 Subject: [PATCH 1/2] Add files via upload --- .../singhmansi25/nx_dev_test_output.txt | 307 ++++++++++++++++++ 1 file changed, 307 insertions(+) create mode 100644 2022-round-1/singhmansi25/nx_dev_test_output.txt diff --git a/2022-round-1/singhmansi25/nx_dev_test_output.txt b/2022-round-1/singhmansi25/nx_dev_test_output.txt new file mode 100644 index 0000000..12e0919 --- /dev/null +++ b/2022-round-1/singhmansi25/nx_dev_test_output.txt @@ -0,0 +1,307 @@ +=========================================================================== test session starts =========================================================================== +platform win32 -- Python 3.8.8, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 +rootdir: C:\Users\lenovo\networkx +plugins: anyio-2.2.0 +collected 4927 items / 1 skipped / 4926 selected + +networkx\networkx\algorithms\approximation\tests\test_approx_clust_coeff.py ...... [ 0%] +networkx\networkx\algorithms\approximation\tests\test_clique.py ........ [ 0%] +networkx\networkx\algorithms\approximation\tests\test_connectivity.py .................. [ 0%] +networkx\networkx\algorithms\approximation\tests\test_distance_measures.py ........ [ 0%] +networkx\networkx\algorithms\approximation\tests\test_dominating_set.py ... [ 0%] +networkx\networkx\algorithms\approximation\tests\test_kcomponents.py ................ [ 1%] +networkx\networkx\algorithms\approximation\tests\test_matching.py . [ 1%] +networkx\networkx\algorithms\approximation\tests\test_maxcut.py ..... [ 1%] +networkx\networkx\algorithms\approximation\tests\test_ramsey.py . [ 1%] +networkx\networkx\algorithms\approximation\tests\test_steinertree.py .... [ 1%] +networkx\networkx\algorithms\approximation\tests\test_traveling_salesman.py ....................................s......s. [ 2%] +networkx\networkx\algorithms\approximation\tests\test_treewidth.py ............ [ 2%] +networkx\networkx\algorithms\approximation\tests\test_vertex_cover.py .... [ 2%] +networkx\networkx\algorithms\assortativity\tests\test_connectivity.py .......... [ 2%] +networkx\networkx\algorithms\assortativity\tests\test_correlation.py ................... [ 3%] +networkx\networkx\algorithms\assortativity\tests\test_mixing.py ................... [ 3%] +networkx\networkx\algorithms\assortativity\tests\test_neighbor_degree.py ...... [ 3%] +networkx\networkx\algorithms\assortativity\tests\test_pairs.py ........... [ 3%] +networkx\networkx\algorithms\bipartite\tests\test_basic.py ............... [ 4%] +networkx\networkx\algorithms\bipartite\tests\test_centrality.py ...... [ 4%] +networkx\networkx\algorithms\bipartite\tests\test_cluster.py ......... [ 4%] +networkx\networkx\algorithms\bipartite\tests\test_covering.py .... [ 4%] +networkx\networkx\algorithms\bipartite\tests\test_edgelist.py .............. [ 4%] +networkx\networkx\algorithms\bipartite\tests\test_generators.py .......... [ 5%] +networkx\networkx\algorithms\bipartite\tests\test_matching.py .................... [ 5%] +networkx\networkx\algorithms\bipartite\tests\test_matrix.py ........... [ 5%] +networkx\networkx\algorithms\bipartite\tests\test_project.py ................. [ 6%] +networkx\networkx\algorithms\bipartite\tests\test_redundancy.py ... [ 6%] +networkx\networkx\algorithms\bipartite\tests\test_spectral_bipartivity.py ... [ 6%] +networkx\networkx\algorithms\centrality\tests\test_betweenness_centrality.py ......................................... [ 7%] +networkx\networkx\algorithms\centrality\tests\test_betweenness_centrality_subset.py ................. [ 7%] +networkx\networkx\algorithms\centrality\tests\test_closeness_centrality.py ............. [ 7%] +networkx\networkx\algorithms\centrality\tests\test_current_flow_betweenness_centrality.py ................ [ 8%] +networkx\networkx\algorithms\centrality\tests\test_current_flow_betweenness_centrality_subset.py ......... [ 8%] +networkx\networkx\algorithms\centrality\tests\test_current_flow_closeness.py ... [ 8%] +networkx\networkx\algorithms\centrality\tests\test_degree_centrality.py ....... [ 8%] +networkx\networkx\algorithms\centrality\tests\test_dispersion.py ... [ 8%] +networkx\networkx\algorithms\centrality\tests\test_eigenvector_centrality.py ............ [ 8%] +networkx\networkx\algorithms\centrality\tests\test_group.py ........................ [ 9%] +networkx\networkx\algorithms\centrality\tests\test_harmonic_centrality.py ............. [ 9%] +networkx\networkx\algorithms\centrality\tests\test_katz_centrality.py .......................... [ 9%] +networkx\networkx\algorithms\centrality\tests\test_load_centrality.py ................. [ 10%] +networkx\networkx\algorithms\centrality\tests\test_percolation_centrality.py ... [ 10%] +networkx\networkx\algorithms\centrality\tests\test_reaching.py .............. [ 10%] +networkx\networkx\algorithms\centrality\tests\test_second_order_centrality.py ....... [ 10%] +networkx\networkx\algorithms\centrality\tests\test_subgraph.py ..... [ 10%] +networkx\networkx\algorithms\centrality\tests\test_trophic.py .......... [ 11%] +networkx\networkx\algorithms\centrality\tests\test_voterank.py ..... [ 11%] +networkx\networkx\algorithms\coloring\tests\test_coloring.py ................ [ 11%] +networkx\networkx\algorithms\community\tests\test_asyn_fluid.py ..... [ 11%] +networkx\networkx\algorithms\community\tests\test_centrality.py ..... [ 11%] +networkx\networkx\algorithms\community\tests\test_kclique.py ........ [ 11%] +networkx\networkx\algorithms\community\tests\test_kernighan_lin.py ........ [ 12%] +networkx\networkx\algorithms\community\tests\test_label_propagation.py ........... [ 12%] +networkx\networkx\algorithms\community\tests\test_louvain.py ........ [ 12%] +networkx\networkx\algorithms\community\tests\test_lukes.py .... [ 12%] +networkx\networkx\algorithms\community\tests\test_modularity_max.py ................. [ 12%] +networkx\networkx\algorithms\community\tests\test_quality.py ....... [ 13%] +networkx\networkx\algorithms\community\tests\test_utils.py .... [ 13%] +networkx\networkx\algorithms\components\tests\test_attracting.py .... [ 13%] +networkx\networkx\algorithms\components\tests\test_biconnected.py ............. [ 13%] +networkx\networkx\algorithms\components\tests\test_connected.py ........ [ 13%] +networkx\networkx\algorithms\components\tests\test_semiconnected.py ........ [ 13%] +networkx\networkx\algorithms\components\tests\test_strongly_connected.py .............. [ 14%] +networkx\networkx\algorithms\components\tests\test_weakly_connected.py ...... [ 14%] +networkx\networkx\algorithms\connectivity\tests\test_connectivity.py .................................. [ 14%] +networkx\networkx\algorithms\connectivity\tests\test_cuts.py ..................... [ 15%] +networkx\networkx\algorithms\connectivity\tests\test_disjoint_paths.py .................. [ 15%] +networkx\networkx\algorithms\connectivity\tests\test_edge_augmentation.py .................... [ 16%] +networkx\networkx\algorithms\connectivity\tests\test_edge_kcomponents.py ..................... [ 16%] +networkx\networkx\algorithms\connectivity\tests\test_kcomponents.py .sss...... [ 16%] +networkx\networkx\algorithms\connectivity\tests\test_kcutsets.py s........s..... [ 17%] +networkx\networkx\algorithms\connectivity\tests\test_stoer_wagner.py ..... [ 17%] +networkx\networkx\algorithms\flow\tests\test_gomory_hu.py ....s.... [ 17%] +networkx\networkx\algorithms\flow\tests\test_maxflow.py ........................... [ 17%] +networkx\networkx\algorithms\flow\tests\test_maxflow_large_graph.py ...s.. [ 17%] +networkx\networkx\algorithms\flow\tests\test_mincost.py ................... [ 18%] +networkx\networkx\algorithms\flow\tests\test_networksimplex.py ...................... [ 18%] +networkx\networkx\algorithms\isomorphism\tests\test_ismags.py .......... [ 18%] +networkx\networkx\algorithms\isomorphism\tests\test_isomorphism.py .... [ 19%] +networkx\networkx\algorithms\isomorphism\tests\test_isomorphvf2.py ............... [ 19%] +networkx\networkx\algorithms\isomorphism\tests\test_match_helpers.py .. [ 19%] +networkx\networkx\algorithms\isomorphism\tests\test_temporalisomorphvf2.py ............ [ 19%] +networkx\networkx\algorithms\isomorphism\tests\test_tree_isomorphism.py ..... [ 19%] +networkx\networkx\algorithms\isomorphism\tests\test_vf2userfunc.py ............................ [ 20%] +networkx\networkx\algorithms\link_analysis\tests\test_hits.py ........ [ 20%] +networkx\networkx\algorithms\link_analysis\tests\test_pagerank.py .................................................... [ 21%] +networkx\networkx\algorithms\minors\tests\test_contraction.py ............................... [ 22%] +networkx\networkx\algorithms\operators\tests\test_all.py .................. [ 22%] +networkx\networkx\algorithms\operators\tests\test_binary.py .................... [ 22%] +networkx\networkx\algorithms\operators\tests\test_product.py ........................... [ 23%] +networkx\networkx\algorithms\operators\tests\test_unary.py ... [ 23%] +networkx\networkx\algorithms\shortest_paths\tests\test_astar.py ............. [ 23%] +networkx\networkx\algorithms\shortest_paths\tests\test_dense.py ........ [ 23%] +networkx\networkx\algorithms\shortest_paths\tests\test_dense_numpy.py ....... [ 24%] +networkx\networkx\algorithms\shortest_paths\tests\test_generic.py ...................... [ 24%] +networkx\networkx\algorithms\shortest_paths\tests\test_unweighted.py ............ [ 24%] +networkx\networkx\algorithms\shortest_paths\tests\test_weighted.py ..................................................... [ 25%] +networkx\networkx\algorithms\tests\test_asteroidal.py . [ 25%] +networkx\networkx\algorithms\tests\test_boundary.py ............. [ 26%] +networkx\networkx\algorithms\tests\test_bridges.py ...... [ 26%] +networkx\networkx\algorithms\tests\test_chains.py .... [ 26%] +networkx\networkx\algorithms\tests\test_chordal.py .......... [ 26%] +networkx\networkx\algorithms\tests\test_clique.py .............. [ 26%] +networkx\networkx\algorithms\tests\test_cluster.py ........................................ [ 27%] +networkx\networkx\algorithms\tests\test_communicability.py .. [ 27%] +networkx\networkx\algorithms\tests\test_core.py ............. [ 27%] +networkx\networkx\algorithms\tests\test_covering.py ........ [ 28%] +networkx\networkx\algorithms\tests\test_cuts.py ................. [ 28%] +networkx\networkx\algorithms\tests\test_cycles.py .................................. [ 29%] +networkx\networkx\algorithms\tests\test_d_separation.py ............. [ 29%] +networkx\networkx\algorithms\tests\test_dag.py ..................................................... [ 30%] +networkx\networkx\algorithms\tests\test_distance_measures.py ................................. [ 31%] +networkx\networkx\algorithms\tests\test_distance_regular.py ....... [ 31%] +networkx\networkx\algorithms\tests\test_dominance.py ...................... [ 31%] +networkx\networkx\algorithms\tests\test_dominating.py ..... [ 31%] +networkx\networkx\algorithms\tests\test_efficiency.py ....... [ 32%] +networkx\networkx\algorithms\tests\test_euler.py .............................. [ 32%] +networkx\networkx\algorithms\tests\test_graph_hashing.py ........................ [ 33%] +networkx\networkx\algorithms\tests\test_graphical.py ............. [ 33%] +networkx\networkx\algorithms\tests\test_hierarchy.py ..... [ 33%] +networkx\networkx\algorithms\tests\test_hybrid.py .. [ 33%] +networkx\networkx\algorithms\tests\test_isolate.py ... [ 33%] +networkx\networkx\algorithms\tests\test_link_prediction.py ......................................................................... [ 35%] +networkx\networkx\algorithms\tests\test_lowest_common_ancestors.py ......................... [ 35%] +networkx\networkx\algorithms\tests\test_matching.py ............................................ [ 36%] +networkx\networkx\algorithms\tests\test_max_weight_clique.py ..... [ 36%] +networkx\networkx\algorithms\tests\test_mis.py ........ [ 36%] +networkx\networkx\algorithms\tests\test_moral.py . [ 36%] +networkx\networkx\algorithms\tests\test_node_classification.py ............... [ 37%] +networkx\networkx\algorithms\tests\test_node_classification_deprecations.py .... [ 37%] +networkx\networkx\algorithms\tests\test_non_randomness.py ...... [ 37%] +networkx\networkx\algorithms\tests\test_planar_drawing.py ............ [ 37%] +networkx\networkx\algorithms\tests\test_planarity.py .............................. [ 38%] +networkx\networkx\algorithms\tests\test_polynomials.py ........ [ 38%] +networkx\networkx\algorithms\tests\test_reciprocity.py ..... [ 38%] +networkx\networkx\algorithms\tests\test_regular.py ............. [ 38%] +networkx\networkx\algorithms\tests\test_richclub.py ........ [ 38%] +networkx\networkx\algorithms\tests\test_similarity.py ............................................ [ 39%] +networkx\networkx\algorithms\tests\test_simple_paths.py ......................................................................... [ 41%] +networkx\networkx\algorithms\tests\test_smallworld.py .... [ 41%] +networkx\networkx\algorithms\tests\test_smetric.py .. [ 41%] +networkx\networkx\algorithms\tests\test_sparsifiers.py ....... [ 41%] +networkx\networkx\algorithms\tests\test_structuralholes.py ............ [ 41%] +networkx\networkx\algorithms\tests\test_summarization.py ................. [ 42%] +networkx\networkx\algorithms\tests\test_swap.py ............. [ 42%] +networkx\networkx\algorithms\tests\test_threshold.py .................. [ 42%] +networkx\networkx\algorithms\tests\test_tournament.py ..................... [ 43%] +networkx\networkx\algorithms\tests\test_triads.py ........ [ 43%] +networkx\networkx\algorithms\tests\test_vitality.py ...... [ 43%] +networkx\networkx\algorithms\tests\test_voronoi.py .......... [ 43%] +networkx\networkx\algorithms\tests\test_wiener.py .... [ 43%] +networkx\networkx\algorithms\traversal\tests\test_beamsearch.py .. [ 43%] +networkx\networkx\algorithms\traversal\tests\test_bfs.py .............. [ 43%] +networkx\networkx\algorithms\traversal\tests\test_dfs.py ................. [ 44%] +networkx\networkx\algorithms\traversal\tests\test_edgebfs.py ................ [ 44%] +networkx\networkx\algorithms\traversal\tests\test_edgedfs.py ............... [ 44%] +networkx\networkx\algorithms\tree\tests\test_branchings.py ........................... [ 45%] +networkx\networkx\algorithms\tree\tests\test_coding.py .............. [ 45%] +networkx\networkx\algorithms\tree\tests\test_decomposition.py ..... [ 45%] +networkx\networkx\algorithms\tree\tests\test_mst.py .............................................. [ 46%] +networkx\networkx\algorithms\tree\tests\test_operations.py ... [ 46%] +networkx\networkx\algorithms\tree\tests\test_recognition.py ......................... [ 47%] +networkx\networkx\classes\tests\test_coreviews.py ......................................................... [ 48%] +networkx\networkx\classes\tests\test_digraph.py ................................................................................ [ 50%] +networkx\networkx\classes\tests\test_digraph_historical.py .......................................... [ 51%] +networkx\networkx\classes\tests\test_filters.py ........... [ 51%] +networkx\networkx\classes\tests\test_function.py .................................................................... [ 52%] +networkx\networkx\classes\tests\test_graph.py .............................................................. [ 53%] +networkx\networkx\classes\tests\test_graph_historical.py .................................. [ 54%] +networkx\networkx\classes\tests\test_graphviews.py ................................... [ 55%] +networkx\networkx\classes\tests\test_multidigraph.py ............................................................................................. [ 57%] +networkx\networkx\classes\tests\test_multigraph.py .............................................................................. [ 58%] +networkx\networkx\classes\tests\test_ordered.py ..... [ 58%] +networkx\networkx\classes\tests\test_reportviews.py ................................................................................................................ [ 61%] +............................................................................................................................. [ 63%] +networkx\networkx\classes\tests\test_special.py .................................................................................................................... [ 66%] +.................................................................................................................................................................... [ 69%] +.................................................................................................................................................................... [ 72%] +.................................................................................................................................................................... [ 76%] +.... [ 76%] +networkx\networkx\classes\tests\test_subgraphviews.py ................................ [ 76%] +networkx\networkx\drawing\tests\test_agraph.py .....................x..x........ [ 77%] +networkx\networkx\drawing\tests\test_layout.py .......................... [ 77%] +networkx\networkx\drawing\tests\test_pydot.py XXX [ 77%] +networkx\networkx\drawing\tests\test_pylab.py ........................................................................................... [ 79%] +networkx\networkx\generators\tests\test_atlas.py ........ [ 80%] +networkx\networkx\generators\tests\test_classic.py .............................. [ 80%] +networkx\networkx\generators\tests\test_cographs.py . [ 80%] +networkx\networkx\generators\tests\test_community.py ................ [ 80%] +networkx\networkx\generators\tests\test_degree_seq.py ................... [ 81%] +networkx\networkx\generators\tests\test_directed.py ........ [ 81%] +networkx\networkx\generators\tests\test_duplication.py ....... [ 81%] +networkx\networkx\generators\tests\test_ego.py .. [ 81%] +networkx\networkx\generators\tests\test_expanders.py .... [ 81%] +networkx\networkx\generators\tests\test_geometric.py ....................... [ 82%] +networkx\networkx\generators\tests\test_harary_graph.py .. [ 82%] +networkx\networkx\generators\tests\test_internet_as_graphs.py ..... [ 82%] +networkx\networkx\generators\tests\test_intersection.py .... [ 82%] +networkx\networkx\generators\tests\test_interval_graph.py ........ [ 82%] +networkx\networkx\generators\tests\test_joint_degree_seq.py .... [ 82%] +networkx\networkx\generators\tests\test_lattice.py ...................... [ 83%] +networkx\networkx\generators\tests\test_line.py .............................. [ 83%] +networkx\networkx\generators\tests\test_mycielski.py ... [ 83%] +networkx\networkx\generators\tests\test_nonisomorphic_trees.py ..... [ 83%] +networkx\networkx\generators\tests\test_random_clustered.py .... [ 84%] +networkx\networkx\generators\tests\test_random_graphs.py ............................................................... [ 85%] +networkx\networkx\generators\tests\test_small.py ....................................... [ 86%] +networkx\networkx\generators\tests\test_spectral_graph_forge.py . [ 86%] +networkx\networkx\generators\tests\test_stochastic.py ...... [ 86%] +networkx\networkx\generators\tests\test_sudoku.py ...... [ 86%] +networkx\networkx\generators\tests\test_trees.py ....... [ 86%] +networkx\networkx\generators\tests\test_triads.py .. [ 86%] +networkx\networkx\linalg\tests\test_algebraic_connectivity.py ....................................................................................... [ 88%] +networkx\networkx\linalg\tests\test_attrmatrix.py ..... [ 88%] +networkx\networkx\linalg\tests\test_bethehessian.py . [ 88%] +networkx\networkx\linalg\tests\test_graphmatrix.py .... [ 88%] +networkx\networkx\linalg\tests\test_laplacian.py .... [ 88%] +networkx\networkx\linalg\tests\test_modularity.py ... [ 88%] +networkx\networkx\linalg\tests\test_spectrum.py ..... [ 88%] +networkx\networkx\readwrite\json_graph\tests\test_adjacency.py ...... [ 88%] +networkx\networkx\readwrite\json_graph\tests\test_cytoscape.py ........ [ 89%] +networkx\networkx\readwrite\json_graph\tests\test_jit.py ..... [ 89%] +networkx\networkx\readwrite\json_graph\tests\test_node_link.py ......... [ 89%] +networkx\networkx\readwrite\json_graph\tests\test_tree.py .... [ 89%] +networkx\networkx\readwrite\tests\test_adjlist.py .................. [ 89%] +networkx\networkx\readwrite\tests\test_edgelist.py .......................... [ 90%] +networkx\networkx\readwrite\tests\test_getattr_nxyaml_removal.py .... [ 90%] +networkx\networkx\readwrite\tests\test_gexf.py ..................... [ 90%] +networkx\networkx\readwrite\tests\test_gml.py ..................... [ 91%] +networkx\networkx\readwrite\tests\test_gpickle.py .. [ 91%] +networkx\networkx\readwrite\tests\test_graph6.py ............... [ 91%] +networkx\networkx\readwrite\tests\test_graphml.py ............................................................. [ 92%] +networkx\networkx\readwrite\tests\test_leda.py .. [ 92%] +networkx\networkx\readwrite\tests\test_p2g.py ... [ 92%] +networkx\networkx\readwrite\tests\test_pajek.py ........ [ 93%] +networkx\networkx\readwrite\tests\test_sparse6.py ................ [ 93%] +networkx\networkx\readwrite\tests\test_text.py ....... [ 93%] +networkx\networkx\testing\tests\test_utils.py ..................... [ 93%] +networkx\networkx\tests\test_all_random_functions.py s [ 93%] +networkx\networkx\tests\test_convert.py ............... [ 94%] +networkx\networkx\tests\test_convert_numpy.py ........................................................................... [ 95%] +networkx\networkx\tests\test_convert_pandas.py ...................... [ 96%] +networkx\networkx\tests\test_convert_scipy.py ..................... [ 96%] +networkx\networkx\tests\test_exceptions.py ....... [ 96%] +networkx\networkx\tests\test_import.py .. [ 96%] +networkx\networkx\tests\test_lazy_imports.py .... [ 96%] +networkx\networkx\tests\test_relabel.py ....................... [ 97%] +networkx\networkx\utils\tests\test__init.py . [ 97%] +networkx\networkx\utils\tests\test_contextmanager.py . [ 97%] +networkx\networkx\utils\tests\test_decorators.py ................................... [ 98%] +networkx\networkx\utils\tests\test_heaps.py .. [ 98%] +networkx\networkx\utils\tests\test_mapped_queue.py ........................................ [ 99%] +networkx\networkx\utils\tests\test_misc.py ...................................... [ 99%] +networkx\networkx\utils\tests\test_random_sequence.py .... [ 99%] +networkx\networkx\utils\tests\test_rcm.py .. [ 99%] +networkx\networkx\utils\tests\test_unionfind.py ..... [100%] + +============================================================================ warnings summary ============================================================================= +D:\Python\lib\site-packages\pyreadline\py3k_compat.py:8 + D:\Python\lib\site-packages\pyreadline\py3k_compat.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working + return isinstance(x, collections.Callable) + +networkx\networkx\drawing\tests\test_pylab.py:419 + C:\Users\lenovo\networkx\networkx\drawing\tests\test_pylab.py:419: 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/mark.html + @pytest.mark.mpl_image_compare + +networkx\networkx\utils\decorators.py:292 + C:\Users\lenovo\networkx\networkx\utils\decorators.py:292: DeprecationWarning: preserve_random_state is deprecated and will be removed in 3.0. + warnings.warn(msg, DeprecationWarning) + +networkx/algorithms/approximation/tests/test_traveling_salesman.py::test_held_karp_ascent +networkx/algorithms/approximation/tests/test_traveling_salesman.py::test_ascent_fractional_solution +networkx/algorithms/approximation/tests/test_traveling_salesman.py::test_ascent_method_asymmetric +networkx/algorithms/approximation/tests/test_traveling_salesman.py::test_held_karp_ascent_asymmetric_3 +networkx/algorithms/approximation/tests/test_traveling_salesman.py::test_held_karp_ascent_fractional_asymmetric +networkx/algorithms/approximation/tests/test_traveling_salesman.py::test_asadpour_tsp + C:\Users\lenovo\networkx\networkx\algorithms\approximation\traveling_salesman.py:679: OptimizeWarning: A_eq does not appear to be of full row rank. To improve performance, check the problem formulation for redundant equality constraints. + program_result = optimize.linprog(c, A_eq=a_eq, b_eq=b_eq) + +networkx/classes/tests/test_ordered.py::TestOrderedFeatures::test_subgraph_order + C:\Users\lenovo\networkx\networkx\classes\tests\test_ordered.py:22: DeprecationWarning: OrderedDiGraph is deprecated and will be removed in version 3.0. + Use `DiGraph` instead, which guarantees order is preserved for + Python >= 3.7 + + cls.G = nx.OrderedDiGraph() + +networkx/linalg/tests/test_algebraic_connectivity.py::TestSpectralOrdering::test_cycle[lobpcg-False-expected_order0] + C:\Users\lenovo\networkx\networkx\linalg\algebraicconnectivity.py:301: 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] + C:\Users\lenovo\networkx\networkx\linalg\algebraicconnectivity.py:301: UserWarning: Exited at iteration 10 with accuracies + [0.00056623] + not reaching the requested tolerance 1e-08. + sigma, X = sp.sparse.linalg.lobpcg( + +-- Docs: https://docs.pytest.org/en/stable/warnings.html +============================================= 4912 passed, 11 skipped, 2 xfailed, 3 xpassed, 12 warnings in 262.09s (0:04:22) ============================================= \ No newline at end of file From f8f8c1d2a2b49a31dbff703c648cc791452b5e1f Mon Sep 17 00:00:00 2001 From: MANSI SINGH <76874762+singhmansi25@users.noreply.github.com> Date: Mon, 4 Apr 2022 00:00:41 +0530 Subject: [PATCH 2/2] Add files via upload --- .../singhmansi25/nx_tutorial_script.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 2022-round-1/singhmansi25/nx_tutorial_script.py diff --git a/2022-round-1/singhmansi25/nx_tutorial_script.py b/2022-round-1/singhmansi25/nx_tutorial_script.py new file mode 100644 index 0000000..f8922a7 --- /dev/null +++ b/2022-round-1/singhmansi25/nx_tutorial_script.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +""" +Created on Sun Apr 3 21:05:26 2022 + +@author: lenovo +""" +# import networkx and matplotlib library +import networkx as nx +import matplotlib.pyplot as plt +# creating DiGraph object DG +DG = nx.DiGraph() +# creating nodes 1,2,3,4 and connecting nodes 1->2 and 3->4 +DG.add_edges_from([(1,2),(3,4)]) +# connecting node 1 and 4: 4->1 +DG.add_edge(4,1) +# creating nodes 'tom' and 'jerry' and connecting 'tom'->'jerry' +DG.add_edge('tom', 'jerry') +# creating nodes 'dog' and 'cat' and connecting 'dog'->'cat' +DG.add_edge('dog','cat') +# connecting node 1 with 'cat' +DG.add_edge(1,'cat') +# creating tuples as nodes +DG.add_edge((100,121),(216,343)) +# connecting str node to tuple node +DG.add_edge('jerry',(216,343)) +# connecting 'cat'-> 3 +DG.add_edge('cat',3) +# adding weighted graph +DG.add_weighted_edges_from([(1,'tom', 0.5), ('dog',(216,343), 0.75)]) +# Drawing the DiGraph +nx.draw(DG, with_labels=True) +plt.draw() + +# Calculating the shortest path and printing it +sp = nx.shortest_path(DG) +print("Shortest path: ",sp) \ No newline at end of file