diff --git a/2022-round-1/shivani6320/nx_dev_test_output.txt b/2022-round-1/shivani6320/nx_dev_test_output.txt new file mode 100644 index 0000000..42bacdd --- /dev/null +++ b/2022-round-1/shivani6320/nx_dev_test_output.txt @@ -0,0 +1,267 @@ +================================================================================================================================================ test session starts ================================================================================================================================================ +platform win32 -- Python 3.10.0, pytest-7.1.1, pluggy-1.0.0 +rootdir: C:\Users\hp\Desktop\networkx +plugins: cov-3.0.0 +collected 4891 items / 3 skipped + +networkx\algorithms\approximation\tests\test_approx_clust_coeff.py ...... [ 0%] +networkx\algorithms\approximation\tests\test_clique.py ........ [ 0%] +networkx\algorithms\approximation\tests\test_connectivity.py .................. [ 0%] +networkx\algorithms\approximation\tests\test_distance_measures.py ........ [ 0%] +networkx\algorithms\approximation\tests\test_dominating_set.py ... [ 0%] +networkx\algorithms\approximation\tests\test_kcomponents.py ................ [ 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 ....................................s......s. [ 2%] +networkx\algorithms\approximation\tests\test_treewidth.py ............ [ 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%] +networkx\algorithms\assortativity\tests\test_mixing.py ................... [ 3%] +networkx\algorithms\assortativity\tests\test_neighbor_degree.py ...... [ 3%] +networkx\algorithms\assortativity\tests\test_pairs.py ........... [ 4%] +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%] +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 ......................................... [ 7%] +networkx\algorithms\centrality\tests\test_betweenness_centrality_subset.py ................. [ 7%] +networkx\algorithms\centrality\tests\test_closeness_centrality.py ............. [ 7%] +networkx\algorithms\centrality\tests\test_current_flow_betweenness_centrality.py ................ [ 8%] +networkx\algorithms\centrality\tests\test_current_flow_betweenness_centrality_subset.py ......... [ 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%] +networkx\algorithms\centrality\tests\test_group.py ........................ [ 9%] +networkx\algorithms\centrality\tests\test_harmonic_centrality.py ............. [ 9%] +networkx\algorithms\centrality\tests\test_katz_centrality.py .......................... [ 10%] +networkx\algorithms\centrality\tests\test_load_centrality.py ................. [ 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%] +networkx\algorithms\centrality\tests\test_subgraph.py ..... [ 10%] +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%] +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%] +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%] +networkx\algorithms\components\tests\test_weakly_connected.py ...... [ 14%] +networkx\algorithms\shortest_paths\tests\test_unweighted.py ............ [ 25%] +networkx\algorithms\shortest_paths\tests\test_weighted.py ..................................................... [ 26%] +networkx\algorithms\tests\test_asteroidal.py . [ 26%] +networkx\algorithms\tests\test_boundary.py ............. [ 26%] +networkx\algorithms\tests\test_bridges.py ...... [ 26%] +networkx\algorithms\tests\test_chains.py .... [ 26%] +networkx\algorithms\tests\test_chordal.py .......... [ 26%] +networkx\algorithms\tests\test_clique.py .............. [ 27%] +networkx\algorithms\tests\test_cluster.py ........................................ [ 27%] +networkx\algorithms\tests\test_communicability.py .. [ 27%] +networkx\algorithms\tests\test_core.py ............. [ 28%] +networkx\algorithms\tests\test_covering.py ........ [ 28%] +networkx\algorithms\tests\test_cuts.py ................. [ 28%] +networkx\algorithms\tests\test_cycles.py .................................. [ 29%] +networkx\algorithms\tests\test_d_separation.py ............. [ 29%] +networkx\algorithms\tests\test_dag.py ..................................................... [ 30%] +networkx\algorithms\tests\test_distance_measures.py ................................. [ 31%] +networkx\algorithms\tests\test_distance_regular.py ....... [ 31%] +networkx\algorithms\tests\test_dominance.py ...................... [ 32%] +networkx\algorithms\tests\test_dominating.py ..... [ 32%] +networkx\algorithms\tests\test_efficiency.py ....... [ 32%] +networkx\algorithms\tests\test_euler.py .............................. [ 32%] +networkx\algorithms\tests\test_graph_hashing.py ........................ [ 33%] +networkx\algorithms\tests\test_graphical.py ............. [ 33%] +networkx\algorithms\tests\test_hierarchy.py ..... [ 33%] +networkx\algorithms\tests\test_hybrid.py .. [ 33%] +networkx\algorithms\tests\test_isolate.py ... [ 33%] +networkx\algorithms\tests\test_link_prediction.py ......................................................................... [ 35%] +networkx\algorithms\tests\test_lowest_common_ancestors.py ......................... [ 35%] +networkx\algorithms\tests\test_matching.py ............................................ [ 36%] +networkx\algorithms\tests\test_max_weight_clique.py ..... [ 36%] +networkx\algorithms\tests\test_mis.py ........ [ 37%] +networkx\algorithms\tests\test_moral.py . [ 37%] +networkx\algorithms\tests\test_node_classification.py ............... [ 37%] +networkx\algorithms\tests\test_node_classification_deprecations.py .... [ 37%] +networkx\algorithms\tests\test_non_randomness.py ...... [ 37%] +networkx\algorithms\tests\test_planar_drawing.py ............ [ 37%] +networkx\algorithms\tests\test_planarity.py .............................. [ 38%] +networkx\algorithms\tests\test_polynomials.py ........ [ 38%] +networkx\algorithms\tests\test_reciprocity.py ..... [ 38%] +networkx\algorithms\tests\test_regular.py ............. [ 38%] +networkx\algorithms\tests\test_richclub.py ........ [ 39%] +networkx\algorithms\tests\test_similarity.py ............................................ [ 39%] +networkx\algorithms\tests\test_simple_paths.py ......................................................................... [ 41%] +networkx\algorithms\tests\test_smallworld.py .... [ 41%] +networkx\algorithms\tests\test_smetric.py .. [ 41%] +networkx\algorithms\tests\test_sparsifiers.py ....... [ 41%] +networkx\algorithms\tests\test_structuralholes.py ............ [ 41%] +networkx\algorithms\tests\test_summarization.py ................. [ 42%] +networkx\algorithms\tests\test_swap.py ............. [ 42%] +networkx\algorithms\tests\test_threshold.py .................. [ 42%] +networkx\algorithms\tests\test_tournament.py ..................... [ 43%] +networkx\algorithms\tests\test_triads.py ........ [ 43%] +networkx\algorithms\tests\test_vitality.py ...... [ 43%] +networkx\algorithms\tests\test_voronoi.py .......... [ 43%] +networkx\algorithms\tests\test_wiener.py .... [ 43%] +networkx\algorithms\traversal\tests\test_beamsearch.py .. [ 44%] +networkx\algorithms\traversal\tests\test_bfs.py .............. [ 44%] +networkx\algorithms\traversal\tests\test_dfs.py ................. [ 44%] +networkx\algorithms\traversal\tests\test_edgebfs.py ................ [ 44%] +networkx\algorithms\traversal\tests\test_edgedfs.py ............... [ 45%] +networkx\algorithms\tree\tests\test_branchings.py ........................... [ 45%] +networkx\algorithms\tree\tests\test_coding.py .............. [ 46%] +networkx\algorithms\tree\tests\test_decomposition.py ..... [ 46%] +networkx\algorithms\tree\tests\test_mst.py .............................................. [ 47%] +networkx\algorithms\tree\tests\test_operations.py ... [ 47%] +networkx\algorithms\tree\tests\test_recognition.py ......................... [ 47%] +networkx\classes\tests\test_coreviews.py ......................................................... [ 48%] +networkx\classes\tests\test_digraph.py ................................................................................ [ 50%] +networkx\classes\tests\test_digraph_historical.py .......................................... [ 51%] +networkx\classes\tests\test_filters.py ........... [ 51%] +networkx\classes\tests\test_function.py .................................................................... [ 53%] +networkx\classes\tests\test_graph.py .............................................................. [ 54%] +networkx\classes\tests\test_graph_historical.py .................................. [ 54%] +networkx\classes\tests\test_graphviews.py ................................... [ 55%] +networkx\classes\tests\test_multidigraph.py ............................................................................................. [ 57%] +networkx\classes\tests\test_multigraph.py .............................................................................. [ 59%] +networkx\classes\tests\test_ordered.py ..... [ 59%] +networkx\classes\tests\test_reportviews.py ............................................................................................................................................................................................................................................. [ 64%] +networkx\classes\tests\test_special.py ....................................................................................................................................................................................................................................................................... [ 69%] +.............................................................................................................................................................................................................................................................................................................. [ 75%] +............................................... [ 76%] +networkx\classes\tests\test_subgraphviews.py ................................ [ 77%] +networkx\drawing\tests\test_layout.py .......................... [ 77%] +networkx\drawing\tests\test_pylab.py ........................................................................................... [ 79%] +networkx\generators\tests\test_atlas.py ........ [ 79%] +networkx\generators\tests\test_classic.py .............................. [ 80%] +networkx\generators\tests\test_cographs.py . [ 80%] +networkx\generators\tests\test_community.py ................ [ 80%] +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 .... [ 81%] +networkx\generators\tests\test_geometric.py ....................... [ 82%] +networkx\generators\tests\test_harary_graph.py .. [ 82%] +networkx\generators\tests\test_internet_as_graphs.py ..... [ 82%] +networkx\generators\tests\test_intersection.py .... [ 82%] +networkx\generators\tests\test_interval_graph.py ........ [ 82%] +networkx\generators\tests\test_joint_degree_seq.py .... [ 82%] +networkx\generators\tests\test_lattice.py ...................... [ 83%] +networkx\generators\tests\test_line.py .............................. [ 83%] +networkx\generators\tests\test_mycielski.py ... [ 83%] +networkx\generators\tests\test_nonisomorphic_trees.py ..... [ 83%] +networkx\generators\tests\test_random_clustered.py .... [ 83%] +networkx\generators\tests\test_random_graphs.py ............................................................... [ 85%] +networkx\generators\tests\test_small.py ....................................... [ 85%] +networkx\generators\tests\test_spectral_graph_forge.py . [ 85%] +networkx\generators\tests\test_stochastic.py ...... [ 86%] +networkx\generators\tests\test_sudoku.py ...... [ 86%] +networkx\generators\tests\test_trees.py ....... [ 86%] +networkx\generators\tests\test_triads.py .. [ 86%] +networkx\linalg\tests\test_algebraic_connectivity.py ....................................................................................... [ 88%] +networkx\linalg\tests\test_attrmatrix.py ..... [ 88%] +networkx\linalg\tests\test_bethehessian.py . [ 88%] +networkx\linalg\tests\test_graphmatrix.py .... [ 88%] +networkx\linalg\tests\test_laplacian.py .... [ 88%] +networkx\linalg\tests\test_modularity.py ... [ 88%] +networkx\linalg\tests\test_spectrum.py ..... [ 88%] +networkx\readwrite\json_graph\tests\test_adjacency.py ...... [ 88%] +networkx\readwrite\json_graph\tests\test_cytoscape.py ........ [ 88%] +networkx\readwrite\json_graph\tests\test_jit.py ..... [ 89%] +networkx\readwrite\json_graph\tests\test_node_link.py ......... [ 89%] +networkx\readwrite\json_graph\tests\test_tree.py .... [ 89%] +networkx\readwrite\tests\test_adjlist.py .................. [ 89%] +networkx\readwrite\tests\test_edgelist.py .......................... [ 90%] +networkx\readwrite\tests\test_getattr_nxyaml_removal.py .... [ 90%] +networkx\readwrite\tests\test_gexf.py ..................... [ 90%] +networkx\readwrite\tests\test_gml.py ..................... [ 91%] +networkx\readwrite\tests\test_gpickle.py .. [ 91%] +networkx\readwrite\tests\test_graph6.py ............... [ 91%] +networkx\readwrite\tests\test_graphml.py ..................sssssssssssssssssssssssssssssssssssssssssss [ 92%] +networkx\readwrite\tests\test_leda.py .. [ 92%] +networkx\readwrite\tests\test_p2g.py ... [ 92%] +networkx\readwrite\tests\test_pajek.py ........ [ 93%] +networkx\readwrite\tests\test_sparse6.py ................ [ 93%] +networkx\readwrite\tests\test_text.py ....... [ 93%] +networkx\testing\tests\test_utils.py ..................... [ 93%] +networkx\tests\test_all_random_functions.py s [ 93%] +networkx\tests\test_convert.py ............... [ 94%] +networkx\tests\test_convert_numpy.py ........................................................................... [ 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_contextmanager.py . [ 97%] +networkx\utils\tests\test_decorators.py ................................... [ 98%] +networkx\utils\tests\test_heaps.py .. [ 98%] +networkx\utils\tests\test_mapped_queue.py ........................................ [ 98%] +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:419 + C:\Users\hp\Desktop\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/how-to/mark.html + @pytest.mark.mpl_image_compare + +networkx\utils\decorators.py:292 + C:\Users\hp\Desktop\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\hp\Desktop\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\hp\Desktop\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\hp\Desktop\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\hp\Desktop\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/how-to/capture-warnings.html +============================================================================================================================= 4838 passed, 56 skipped, 11 warnings in 116.31s (0:01:56) ============================================================================================================================= \ No newline at end of file diff --git a/2022-round-1/shivani6320/nx_tutorial_script.py b/2022-round-1/shivani6320/nx_tutorial_script.py new file mode 100644 index 0000000..0701724 --- /dev/null +++ b/2022-round-1/shivani6320/nx_tutorial_script.py @@ -0,0 +1,33 @@ +# Importing the libraries +import networkx as nx +import matplotlib.pyplot as plt + +# Creating DiGraph object +OG = nx.DiGraph() + +# Adding nodes of type int +OG.add_node(1) +OG.add_nodes_from([2,3]) #adds node through iterating from given list + +# Adding nodes of type str +OG.add_node("Smith") +OG.add_node("Sam") +OG.add_node("Roy") +OG.add_node("Jil") + +# Adding edges to nodes +OG.add_edge("Roy",1) # Roy-->1 +OG.add_edges_from([("Smith","Sam"),("Smith","Roy"),("Smith","Jil")]) # Smith-->Sam | Smith-->Roy | Smith-->Jil +OG.add_edges_from([("Sam",2),("Sam",3)]) # Sam-->2 | Sam-->3 +OG.add_edge("Jil",(4,5,6)) # Jil-->(4,5,6) + +# Drawing the DiGraph +nx.draw(OG, with_labels=True) + +# Calculating the shortest path and printing it +shortest_path = nx.shortest_path(OG) +print(shortest_path) + +# Printing the number of nodes and edges +print("Number of Nodes:", OG.number_of_nodes()) +print("Number of Edges:", OG.number_of_edges()) \ No newline at end of file diff --git a/2022-round-1/shivani6320/nx_version.txt b/2022-round-1/shivani6320/nx_version.txt new file mode 100644 index 0000000..5588ae8 --- /dev/null +++ b/2022-round-1/shivani6320/nx_version.txt @@ -0,0 +1 @@ +2.7.1 \ No newline at end of file