diff --git a/2022-round-2/dnabanita7/nx_dev_test_output.txt b/2022-round-2/dnabanita7/nx_dev_test_output.txt new file mode 100644 index 0000000..29e5ac1 --- /dev/null +++ b/2022-round-2/dnabanita7/nx_dev_test_output.txt @@ -0,0 +1,361 @@ +============================= test session starts ============================== +platform linux -- Python 3.9.7, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 +rootdir: /home/naba/networkx +plugins: anyio-2.2.0 +collected 4950 items / 2 skipped / 4948 selected + +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%] +..................................... [ 7%] +networkx/algorithms/centrality/tests/test_betweenness_centrality_subset.py . [ 7%] +.............. [ 7%] +networkx/algorithms/centrality/tests/test_closeness_centrality.py ...... [ 7%] +....... [ 7%] +networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py . [ 7%] +............... [ 7%] +networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality_subset.py . [ 7%] +........ [ 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_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 ..... [ 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 ........ [ 11%] +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%] +..... [ 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 ........ [ 13%] +...... [ 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..... [ 16%] +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_vf2userfunc.py .............. [ 20%] +.............. [ 20%] +networkx/algorithms/isomorphism/tests/vf2pp/test_Ti_computing.py .... [ 20%] +networkx/algorithms/isomorphism/tests/vf2pp/test_candidates.py ......... [ 20%] + [ 20%] +networkx/algorithms/isomorphism/tests/vf2pp/test_feasibility.py ........ [ 20%] +.................... [ 21%] +networkx/algorithms/isomorphism/tests/vf2pp/test_ordering.py .... [ 21%] +networkx/algorithms/isomorphism/tests/vf2pp/test_precheck.py ......... [ 21%] +networkx/algorithms/isomorphism/tests/vf2pp/test_vf2pp.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 .................... [ 25%] +........ [ 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 ............................... [ 31%] +... [ 31%] +networkx/algorithms/tests/test_d_separation.py .............. [ 31%] +networkx/algorithms/tests/test_dag.py .................................. [ 32%] +..................... [ 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%] +............. [ 37%] +networkx/algorithms/tests/test_matching.py ............................. [ 38%] +................ [ 38%] +networkx/algorithms/tests/test_max_weight_clique.py ..... [ 38%] +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 ...... [ 39%] +networkx/algorithms/tests/test_planar_drawing.py ............ [ 39%] +networkx/algorithms/tests/test_planarity.py ............................ [ 40%] +.. [ 40%] +networkx/algorithms/tests/test_polynomials.py .................. [ 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 ....... [ 43%] +networkx/algorithms/tests/test_structuralholes.py ............ [ 44%] +networkx/algorithms/tests/test_summarization.py ................. [ 44%] +networkx/algorithms/tests/test_swap.py .................. [ 44%] +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%] +............... [ 62%] +networkx/classes/tests/test_multigraph.py .............................. [ 62%] +........................................................................ [ 64%] +................................................... [ 65%] +networkx/classes/tests/test_reportviews.py ............................. [ 65%] +........................................................................ [ 67%] +........................................................................ [ 68%] +.................................................................... [ 69%] +networkx/classes/tests/test_special.py ................................. [ 70%] +........................................................................ [ 72%] +........................................................................ [ 73%] +........................................................................ [ 75%] +........................................................................ [ 76%] +........................... [ 77%] +networkx/classes/tests/test_subgraphviews.py ........................... [ 77%] +..... [ 77%] +networkx/drawing/tests/test_layout.py .............................. [ 78%] +networkx/drawing/tests/test_pylab.py ................................... [ 78%] +......................................................... [ 80%] +networkx/generators/tests/test_atlas.py ........ [ 80%] +networkx/generators/tests/test_classic.py .............................. [ 80%] +....... [ 81%] +networkx/generators/tests/test_cographs.py . [ 81%] +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 ....... [ 82%] +networkx/generators/tests/test_ego.py .. [ 82%] +networkx/generators/tests/test_expanders.py .......................... [ 82%] +networkx/generators/tests/test_geometric.py ........................ [ 83%] +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 ....................... [ 84%] +networkx/generators/tests/test_line.py .............................. [ 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 ...... [ 87%] +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 ............ [ 90%] +networkx/readwrite/json_graph/tests/test_tree.py ... [ 90%] +networkx/readwrite/tests/test_adjlist.py .................. [ 90%] +networkx/readwrite/tests/test_edgelist.py .......................... [ 91%] +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 ............................... [ 93%] +.............................. [ 93%] +networkx/readwrite/tests/test_leda.py .. [ 93%] +networkx/readwrite/tests/test_p2g.py ... [ 93%] +networkx/readwrite/tests/test_pajek.py ........ [ 94%] +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:420 + /home/naba/networkx/networkx/drawing/tests/test_pylab.py:420: 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/linalg/tests/test_algebraic_connectivity.py::TestSpectralOrdering::test_cycle[lobpcg-False-expected_order0] + /home/naba/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] + /home/naba/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( + +-- Docs: https://docs.pytest.org/en/stable/warnings.html +=========== 4939 passed, 13 skipped, 3 warnings in 114.01s (0:01:54) =========== diff --git a/2022-round-2/dnabanita7/nx_tutorial_script.py b/2022-round-2/dnabanita7/nx_tutorial_script.py new file mode 100644 index 0000000..3784a75 --- /dev/null +++ b/2022-round-2/dnabanita7/nx_tutorial_script.py @@ -0,0 +1,21 @@ +import networkx as nx + +# Create a DiGraph +G = nx.DiGraph() + +# Add nodes to the graph +nodes = [7, "Nabanita", ("ABCD", 56.8)) +G.add_nodes_from(nodes) + +# Add edges between the nodes +edges = [ (7, "Nabanita"), ("Nabanita", ("ABCD", 56.8)), (("ABCD", 56.8), 7), + ("Nabanita", 7) ] +G.add_edges_from(edges) + +# Find shortest path b/w all pairs of nodes +paths = dict(nx.all_pairs_shortest_path(G)) +for path in paths: + print(path, paths[path]) + +# Plot the graph +nx.draw(G, with_labels=True, font_weight="bold")