basedpyright 1.28.3 → 1.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +15 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +2 -178
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/builtins.pyi +51 -33
- package/dist/typeshed-fallback/stdlib/configparser.pyi +61 -42
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +15 -5
- package/dist/typeshed-fallback/stdlib/functools.pyi +18 -13
- package/dist/typeshed-fallback/stdlib/getopt.pyi +15 -3
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/heapq.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/http/server.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +11 -7
- package/dist/typeshed-fallback/stdlib/inspect.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/logging/config.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/math.pyi +33 -3
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +13 -9
- package/dist/typeshed-fallback/stdlib/pkgutil.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -5
- package/dist/typeshed-fallback/stdlib/socketserver.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/statistics.pyi +14 -15
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +181 -162
- package/dist/typeshed-fallback/stdlib/types.pyi +27 -4
- package/dist/typeshed-fallback/stdlib/typing.pyi +10 -7
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +95 -48
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/xml/dom/NodeFilter.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/xml/dom/__init__.pyi +84 -53
- package/dist/typeshed-fallback/stdlib/xml/dom/expatbuilder.pyi +66 -45
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +524 -193
- package/dist/typeshed-fallback/stdlib/xml/dom/pulldom.pyi +70 -55
- package/dist/typeshed-fallback/stdlib/xml/dom/xmlbuilder.pyi +20 -49
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementInclude.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementPath.pyi +19 -12
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +83 -41
- package/dist/typeshed-fallback/stdlib/xml/sax/_exceptions.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -24
- package/dist/typeshed-fallback/stdlib/xml/sax/handler.pyi +48 -17
- package/dist/typeshed-fallback/stdlib/xml/sax/saxutils.pyi +24 -16
- package/dist/typeshed-fallback/stdlib/xml/sax/xmlreader.pyi +59 -56
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stdlib/zipfile/_path/__init__.pyi +32 -52
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/classic.pyi +6 -1
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/sphinx.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/pygments/plugin.pyi +11 -3
- package/dist/typeshed-fallback/stubs/RPi.GPIO/RPi/GPIO/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/WTForms/wtforms/validators.pyi +13 -5
- package/dist/typeshed-fallback/stubs/WebOb/webob/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/_types.pyi +21 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/acceptparse.pyi +496 -285
- package/dist/typeshed-fallback/stubs/WebOb/webob/byterange.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cachecontrol.pyi +75 -75
- package/dist/typeshed-fallback/stubs/WebOb/webob/client.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/compat.pyi +24 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cookies.pyi +39 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/datetime_utils.pyi +16 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/dec.pyi +40 -40
- package/dist/typeshed-fallback/stubs/WebOb/webob/descriptors.pyi +23 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/etag.pyi +11 -18
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +70 -7
- package/dist/typeshed-fallback/stubs/WebOb/webob/headers.pyi +20 -2
- package/dist/typeshed-fallback/stubs/WebOb/webob/multidict.pyi +97 -31
- package/dist/typeshed-fallback/stubs/WebOb/webob/request.pyi +70 -79
- package/dist/typeshed-fallback/stubs/WebOb/webob/response.pyi +62 -62
- package/dist/typeshed-fallback/stubs/WebOb/webob/static.pyi +12 -9
- package/dist/typeshed-fallback/stubs/WebOb/webob/util.pyi +2 -5
- package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/boltons/boltons/dictutils.pyi +1 -3
- package/dist/typeshed-fallback/stubs/boltons/boltons/tbutils.pyi +13 -13
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/braintree_gateway.pyi +2 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +40 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_numbers.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/nonces.pyi +1 -0
- package/dist/typeshed-fallback/stubs/cffi/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/cffi/_cffi_backend.pyi +8 -8
- package/dist/typeshed-fallback/stubs/cffi/cffi/recompiler.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/dirhash/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/__init__.pyi +93 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/cli.pyi +5 -0
- package/dist/typeshed-fallback/stubs/fanstatic/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fanstatic/fanstatic/registry.pyi +8 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +2 -8
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/geodataframe.pyi +1 -1
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/io/sql.pyi +0 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/hub.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecext.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecffi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libuv/loop.pyi +1 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/METADATA.toml +0 -1
- package/dist/typeshed-fallback/stubs/greenlet/greenlet/_greenlet.pyi +5 -1
- package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/hnswlib.pyi +8 -6
- package/dist/typeshed-fallback/stubs/humanfriendly/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +6 -6
- package/dist/typeshed-fallback/stubs/mock/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/mock/mock/backports.pyi +6 -1
- package/dist/typeshed-fallback/stubs/mock/mock/mock.pyi +1 -1
- package/dist/typeshed-fallback/stubs/mysqlclient/MySQLdb/_mysql.pyi +32 -32
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clique.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clustering_coefficient.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/connectivity.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/distance_measures.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/dominating_set.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/kcomponents.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/matching.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/maxcut.pyi +8 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/ramsey.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/traveling_salesman.pyi +33 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/vertex_cover.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/connectivity.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/correlation.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/mixing.pyi +16 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/neighbor_degree.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/pairs.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/asteroidal.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/basic.pyi +8 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/centrality.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/cluster.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/covering.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/edgelist.pyi +13 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/extendability.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/generators.pyi +22 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matching.pyi +11 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matrix.pyi +9 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/projection.pyi +9 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/redundancy.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/spectral.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/boundary.pyi +53 -58
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bridges.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness_subset.pyi +10 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +7 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness.pyi +9 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi +16 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_closeness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/eigenvector.pyi +10 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/flow_matrix.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/group.pyi +16 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/harmonic.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/katz.pyi +15 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/laplacian.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/load.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/percolation.pyi +6 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/reaching.pyi +9 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/second_order.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/subgraph_alg.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/trophic.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/voterank_alg.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/chordal.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/clique.pyi +9 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cluster.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/equitable_coloring.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi +2 -20
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/communicability_alg.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/asyn_fluid.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/centrality.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/community_utils.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/divisive.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kclique.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kernighan_lin.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/label_propagation.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/louvain.pyi +13 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/lukes.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/modularity_max.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/quality.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/biconnected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/connected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/semiconnected.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/strongly_connected.pyi +5 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/weakly_connected.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/connectivity.pyi +29 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/cuts.pyi +21 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/disjoint_paths.pyi +17 -16
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_augmentation.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcomponents.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcutsets.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/stoerwagner.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/core.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/covering.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cuts.pyi +10 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cycles.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/d_separation.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +13 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_measures.pyi +8 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominance.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominating.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/efficiency_measures.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/euler.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/boykovkolmogorov.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/capacityscaling.pyi +4 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/dinitz_alg.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/edmondskarp.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/gomory_hu.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/maxflow.pyi +34 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/mincost.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/networksimplex.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/preflowpush.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/shortestaugmentingpath.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/utils.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graph_hashing.pyi +12 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graphical.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hierarchy.pyi +1 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hybrid.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isolate.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/ismags.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorph.pyi +11 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorphvf2.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/tree_isomorphism.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2pp.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2userfunc.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/hits_alg.pyi +9 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/pagerank_alg.pyi +16 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_prediction.pyi +9 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/lowest_common_ancestors.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/matching.pyi +7 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/minors/contraction.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/mis.pyi +6 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/moral.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/node_classification.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/non_randomness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/all.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/binary.pyi +11 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/product.pyi +14 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/unary.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/polynomials.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/reciprocity.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/richclub.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/astar.pyi +22 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/dense.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +33 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/unweighted.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/weighted.pyi +116 -30
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +69 -55
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/simple_paths.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smallworld.pyi +6 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smetric.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/sparsifiers.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/structuralholes.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/summarization.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/swap.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/time_dependent.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tournament.pyi +8 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/beamsearch.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/breadth_first_search.pyi +16 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/depth_first_search.pyi +20 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgebfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgedfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +13 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/coding.pyi +8 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/mst.pyi +22 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/operations.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/recognition.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/triads.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/vitality.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/voronoi.pyi +10 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/walks.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/coreviews.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/reportviews.pyi +39 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/time_series.pyi +4 -0
- package/dist/typeshed-fallback/stubs/passlib/passlib/hosts.pyi +3 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +19 -19
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor.pyi +6 -0
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +18 -0
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/build_main.pyi +19 -7
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +18 -16
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +3 -0
- package/dist/typeshed-fallback/stubs/pynput/pynput/mouse/__init__.pyi +6 -3
- package/dist/typeshed-fallback/stubs/pyserial/serial/tools/miniterm.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pytz/pytz/tzinfo.pyi +3 -3
- package/dist/typeshed-fallback/stubs/pywin32/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/pythoncom.pyi +19 -2
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32con.pyi +4895 -4764
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32timezone.pyi +81 -42
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/winerror.pyi +7258 -2574
- package/dist/typeshed-fallback/stubs/pywin32/win32/servicemanager.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32trace.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32ts.pyi +1 -0
- package/dist/typeshed-fallback/stubs/pywin32/win32com/client/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/regex/regex/regex.pyi +5 -5
- package/dist/typeshed-fallback/stubs/requests/requests/__init__.pyi +12 -13
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +3 -0
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +4 -3
- package/dist/typeshed-fallback/stubs/setuptools/distutils/ccompiler.pyi +11 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/base.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/msvc.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi +2 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +13 -178
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +3 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install.pyi +5 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi +4 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/sdist.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compat/__init__.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +196 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/errors.pyi +6 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi +24 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +23 -20
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/errors.pyi +12 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +12 -11
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_wheel.pyi +0 -2
- package/dist/typeshed-fallback/stubs/simplejson/simplejson/encoder.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/six/moves/builtins.pyi +0 -1
- package/dist/typeshed-fallback/stubs/tqdm/METADATA.toml +4 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +4 -3
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/std.pyi +10 -3
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +15 -8
- package/dist/typeshed-fallback/stubs/watchpoints/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/ast_monkey.pyi +3 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/util.pyi +6 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch.pyi +68 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_element.pyi +56 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_print.pyi +24 -0
- package/dist/typeshed-fallback/stubs/zstd/METADATA.toml +1 -1
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +0 -543
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/markers.pyi +0 -13
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/requirements.pyi +0 -14
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/specifiers.pyi +0 -66
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/version.pyi +0 -49
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator
|
|
2
|
+
from collections.abc import Callable, Generator
|
|
3
3
|
from typing import overload
|
|
4
4
|
|
|
5
5
|
from networkx.classes.graph import Graph, _Node
|
|
@@ -9,23 +9,45 @@ from networkx.utils.backends import _dispatchable
|
|
|
9
9
|
def has_path(G: Graph[_Node], source: _Node, target: _Node) -> bool: ...
|
|
10
10
|
@overload
|
|
11
11
|
def shortest_path(
|
|
12
|
-
G: Graph[_Node],
|
|
12
|
+
G: Graph[_Node],
|
|
13
|
+
source: _Node | None = None,
|
|
14
|
+
target: _Node | None = None,
|
|
15
|
+
weight: str | Callable[..., Incomplete] | None = None,
|
|
16
|
+
method: str | None = "dijkstra",
|
|
13
17
|
) -> list[_Node]: ...
|
|
14
18
|
@overload
|
|
15
|
-
def shortest_path(
|
|
19
|
+
def shortest_path(
|
|
20
|
+
G: Graph[_Node],
|
|
21
|
+
source: _Node | None = None,
|
|
22
|
+
target: _Node | None = None,
|
|
23
|
+
weight: str | Callable[..., Incomplete] | None = None,
|
|
24
|
+
method: str | None = "dijkstra",
|
|
25
|
+
) -> dict[_Node, list[_Node]]: ...
|
|
16
26
|
@overload
|
|
17
|
-
def shortest_path(
|
|
27
|
+
def shortest_path(
|
|
28
|
+
G: Graph[_Node],
|
|
29
|
+
source: _Node | None = None,
|
|
30
|
+
target: _Node | None = None,
|
|
31
|
+
weight: str | Callable[..., Incomplete] | None = None,
|
|
32
|
+
method: str | None = "dijkstra",
|
|
33
|
+
) -> dict[_Node, list[_Node]]: ...
|
|
18
34
|
@_dispatchable
|
|
19
35
|
def shortest_path_length(
|
|
20
|
-
G,
|
|
21
|
-
source:
|
|
22
|
-
target:
|
|
23
|
-
weight: Incomplete | None = None,
|
|
24
|
-
method: str = "dijkstra",
|
|
36
|
+
G: Graph[_Node],
|
|
37
|
+
source: _Node | None = None,
|
|
38
|
+
target: _Node | None = None,
|
|
39
|
+
weight: str | Callable[..., Incomplete] | None = None,
|
|
40
|
+
method: str | None = "dijkstra",
|
|
25
41
|
): ...
|
|
26
42
|
@_dispatchable
|
|
27
|
-
def average_shortest_path_length(
|
|
43
|
+
def average_shortest_path_length(
|
|
44
|
+
G: Graph[_Node], weight: str | Callable[..., Incomplete] | None = None, method: str | None = None
|
|
45
|
+
): ...
|
|
28
46
|
@_dispatchable
|
|
29
47
|
def all_shortest_paths(
|
|
30
|
-
G: Graph[_Node],
|
|
48
|
+
G: Graph[_Node],
|
|
49
|
+
source: _Node,
|
|
50
|
+
target: _Node,
|
|
51
|
+
weight: str | Callable[..., Incomplete] | None = None,
|
|
52
|
+
method: str | None = "dijkstra",
|
|
31
53
|
) -> Generator[list[_Node], None, None]: ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/unweighted.pyi
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from collections.abc import Generator
|
|
3
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
5
|
from networkx.utils.backends import _dispatchable
|
|
5
6
|
|
|
6
7
|
@_dispatchable
|
|
7
|
-
def single_source_shortest_path_length(G, source, cutoff:
|
|
8
|
+
def single_source_shortest_path_length(G: Graph[_Node], source: _Node, cutoff: int | None = None): ...
|
|
8
9
|
@_dispatchable
|
|
9
|
-
def single_target_shortest_path_length(G, target, cutoff:
|
|
10
|
+
def single_target_shortest_path_length(G: Graph[_Node], target: _Node, cutoff: int | None = None): ...
|
|
10
11
|
@_dispatchable
|
|
11
|
-
def all_pairs_shortest_path_length(G, cutoff:
|
|
12
|
+
def all_pairs_shortest_path_length(G: Graph[_Node], cutoff: int | None = None) -> Generator[Incomplete, None, None]: ...
|
|
12
13
|
@_dispatchable
|
|
13
|
-
def bidirectional_shortest_path(G, source, target): ...
|
|
14
|
+
def bidirectional_shortest_path(G: Graph[_Node], source: str, target: str): ...
|
|
14
15
|
@_dispatchable
|
|
15
|
-
def single_source_shortest_path(G, source, cutoff:
|
|
16
|
+
def single_source_shortest_path(G: Graph[_Node], source: str, cutoff: int | None = None): ...
|
|
16
17
|
@_dispatchable
|
|
17
|
-
def single_target_shortest_path(G, target, cutoff:
|
|
18
|
+
def single_target_shortest_path(G: Graph[_Node], target: str, cutoff: int | None = None): ...
|
|
18
19
|
@_dispatchable
|
|
19
|
-
def all_pairs_shortest_path(G, cutoff:
|
|
20
|
+
def all_pairs_shortest_path(G: Graph[_Node], cutoff: int | None = None) -> Generator[Incomplete, None, None]: ...
|
|
20
21
|
@_dispatchable
|
|
21
22
|
def predecessor(
|
|
22
|
-
G, source, target:
|
|
23
|
+
G: Graph[_Node], source: str, target: str | None = None, cutoff: int | None = None, return_seen: bool | None = None
|
|
23
24
|
): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/weighted.pyi
CHANGED
|
@@ -1,72 +1,158 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
2
|
from collections.abc import Callable, Generator
|
|
3
3
|
from typing import Any
|
|
4
|
-
from typing_extensions import TypeAlias
|
|
5
4
|
|
|
5
|
+
from networkx.classes.graph import Graph, _Node
|
|
6
6
|
from networkx.utils.backends import _dispatchable
|
|
7
7
|
|
|
8
|
-
# type alias for the weight function
|
|
9
|
-
_WeightFunction: TypeAlias = Callable[[Any, Any, dict[str, Any]], float | None]
|
|
10
|
-
|
|
11
8
|
@_dispatchable
|
|
12
|
-
def dijkstra_path(
|
|
9
|
+
def dijkstra_path(
|
|
10
|
+
G: Graph[_Node],
|
|
11
|
+
source: _Node,
|
|
12
|
+
target: _Node,
|
|
13
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
14
|
+
): ...
|
|
13
15
|
@_dispatchable
|
|
14
|
-
def dijkstra_path_length(
|
|
16
|
+
def dijkstra_path_length(
|
|
17
|
+
G: Graph[_Node],
|
|
18
|
+
source: str,
|
|
19
|
+
target: str,
|
|
20
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
21
|
+
): ...
|
|
15
22
|
@_dispatchable
|
|
16
|
-
def single_source_dijkstra_path(
|
|
23
|
+
def single_source_dijkstra_path(
|
|
24
|
+
G: Graph[_Node],
|
|
25
|
+
source: _Node,
|
|
26
|
+
cutoff: float | None = None,
|
|
27
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
28
|
+
): ...
|
|
17
29
|
@_dispatchable
|
|
18
|
-
def single_source_dijkstra_path_length(
|
|
30
|
+
def single_source_dijkstra_path_length(
|
|
31
|
+
G: Graph[_Node],
|
|
32
|
+
source: str,
|
|
33
|
+
cutoff: float | None = None,
|
|
34
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
35
|
+
): ...
|
|
19
36
|
@_dispatchable
|
|
20
37
|
def single_source_dijkstra(
|
|
21
|
-
G
|
|
38
|
+
G: Graph[_Node],
|
|
39
|
+
source: str,
|
|
40
|
+
target: str | None = None,
|
|
41
|
+
cutoff: float | None = None,
|
|
42
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
22
43
|
): ...
|
|
23
44
|
@_dispatchable
|
|
24
|
-
def multi_source_dijkstra_path(
|
|
45
|
+
def multi_source_dijkstra_path(
|
|
46
|
+
G: Graph[_Node],
|
|
47
|
+
sources,
|
|
48
|
+
cutoff: float | None = None,
|
|
49
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
50
|
+
): ...
|
|
25
51
|
@_dispatchable
|
|
26
|
-
def multi_source_dijkstra_path_length(
|
|
52
|
+
def multi_source_dijkstra_path_length(
|
|
53
|
+
G: Graph[_Node],
|
|
54
|
+
sources,
|
|
55
|
+
cutoff: float | None = None,
|
|
56
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
57
|
+
): ...
|
|
27
58
|
@_dispatchable
|
|
28
59
|
def multi_source_dijkstra(
|
|
29
|
-
G
|
|
60
|
+
G: Graph[_Node],
|
|
61
|
+
sources,
|
|
62
|
+
target: str | None = None,
|
|
63
|
+
cutoff: float | None = None,
|
|
64
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
30
65
|
): ...
|
|
31
66
|
@_dispatchable
|
|
32
|
-
def dijkstra_predecessor_and_distance(
|
|
67
|
+
def dijkstra_predecessor_and_distance(
|
|
68
|
+
G: Graph[_Node],
|
|
69
|
+
source: str,
|
|
70
|
+
cutoff: float | None = None,
|
|
71
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
72
|
+
): ...
|
|
33
73
|
@_dispatchable
|
|
34
74
|
def all_pairs_dijkstra(
|
|
35
|
-
G
|
|
75
|
+
G: Graph[_Node],
|
|
76
|
+
cutoff: float | None = None,
|
|
77
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
36
78
|
) -> Generator[Incomplete, None, None]: ...
|
|
37
79
|
@_dispatchable
|
|
38
80
|
def all_pairs_dijkstra_path_length(
|
|
39
|
-
G
|
|
81
|
+
G: Graph[_Node],
|
|
82
|
+
cutoff: float | None = None,
|
|
83
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
40
84
|
) -> Generator[Incomplete, None, None]: ...
|
|
41
85
|
@_dispatchable
|
|
42
86
|
def all_pairs_dijkstra_path(
|
|
43
|
-
G
|
|
87
|
+
G: Graph[_Node],
|
|
88
|
+
cutoff: float | None = None,
|
|
89
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
44
90
|
) -> Generator[Incomplete, None, None]: ...
|
|
45
91
|
@_dispatchable
|
|
46
92
|
def bellman_ford_predecessor_and_distance(
|
|
47
|
-
G
|
|
93
|
+
G: Graph[_Node],
|
|
94
|
+
source: str,
|
|
95
|
+
target: str | None = None,
|
|
96
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
97
|
+
heuristic: bool = False,
|
|
48
98
|
): ...
|
|
49
99
|
@_dispatchable
|
|
50
|
-
def bellman_ford_path(
|
|
100
|
+
def bellman_ford_path(
|
|
101
|
+
G: Graph[_Node],
|
|
102
|
+
source: _Node,
|
|
103
|
+
target: _Node,
|
|
104
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
105
|
+
): ...
|
|
51
106
|
@_dispatchable
|
|
52
|
-
def bellman_ford_path_length(
|
|
107
|
+
def bellman_ford_path_length(
|
|
108
|
+
G: Graph[_Node],
|
|
109
|
+
source: str,
|
|
110
|
+
target: str,
|
|
111
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
112
|
+
): ...
|
|
53
113
|
@_dispatchable
|
|
54
|
-
def single_source_bellman_ford_path(
|
|
114
|
+
def single_source_bellman_ford_path(
|
|
115
|
+
G: Graph[_Node], source: _Node, weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight"
|
|
116
|
+
): ...
|
|
55
117
|
@_dispatchable
|
|
56
|
-
def single_source_bellman_ford_path_length(
|
|
118
|
+
def single_source_bellman_ford_path_length(
|
|
119
|
+
G: Graph[_Node], source: str, weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight"
|
|
120
|
+
): ...
|
|
57
121
|
@_dispatchable
|
|
58
|
-
def single_source_bellman_ford(
|
|
122
|
+
def single_source_bellman_ford(
|
|
123
|
+
G: Graph[_Node],
|
|
124
|
+
source: str,
|
|
125
|
+
target: str | None = None,
|
|
126
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
127
|
+
): ...
|
|
59
128
|
@_dispatchable
|
|
60
|
-
def all_pairs_bellman_ford_path_length(
|
|
129
|
+
def all_pairs_bellman_ford_path_length(
|
|
130
|
+
G: Graph[_Node], weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight"
|
|
131
|
+
) -> Generator[Incomplete, None, None]: ...
|
|
61
132
|
@_dispatchable
|
|
62
|
-
def all_pairs_bellman_ford_path(
|
|
133
|
+
def all_pairs_bellman_ford_path(
|
|
134
|
+
G: Graph[_Node], weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight"
|
|
135
|
+
) -> Generator[Incomplete, None, None]: ...
|
|
63
136
|
@_dispatchable
|
|
64
|
-
def goldberg_radzik(
|
|
137
|
+
def goldberg_radzik(
|
|
138
|
+
G: Graph[_Node], source: str, weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight"
|
|
139
|
+
): ...
|
|
65
140
|
@_dispatchable
|
|
66
|
-
def negative_edge_cycle(
|
|
141
|
+
def negative_edge_cycle(
|
|
142
|
+
G: Graph[_Node],
|
|
143
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
144
|
+
heuristic: bool = True,
|
|
145
|
+
): ...
|
|
67
146
|
@_dispatchable
|
|
68
|
-
def find_negative_cycle(
|
|
147
|
+
def find_negative_cycle(
|
|
148
|
+
G: Graph[_Node], source: str, weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight"
|
|
149
|
+
): ...
|
|
69
150
|
@_dispatchable
|
|
70
|
-
def bidirectional_dijkstra(
|
|
151
|
+
def bidirectional_dijkstra(
|
|
152
|
+
G: Graph[_Node],
|
|
153
|
+
source: _Node,
|
|
154
|
+
target: _Node,
|
|
155
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
156
|
+
): ...
|
|
71
157
|
@_dispatchable
|
|
72
|
-
def johnson(G, weight: str |
|
|
158
|
+
def johnson(G: Graph[_Node], weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight"): ...
|
|
@@ -1,83 +1,97 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
|
+
from collections.abc import Callable, Generator
|
|
3
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
5
|
from networkx.utils.backends import _dispatchable
|
|
6
|
+
from numpy.random import RandomState
|
|
5
7
|
|
|
6
8
|
@_dispatchable
|
|
7
9
|
def graph_edit_distance(
|
|
8
|
-
G1,
|
|
9
|
-
G2,
|
|
10
|
-
node_match: Incomplete | None = None,
|
|
11
|
-
edge_match: Incomplete | None = None,
|
|
12
|
-
node_subst_cost: Incomplete | None = None,
|
|
13
|
-
node_del_cost: Incomplete | None = None,
|
|
14
|
-
node_ins_cost: Incomplete | None = None,
|
|
15
|
-
edge_subst_cost: Incomplete | None = None,
|
|
16
|
-
edge_del_cost: Incomplete | None = None,
|
|
17
|
-
edge_ins_cost: Incomplete | None = None,
|
|
18
|
-
roots
|
|
19
|
-
upper_bound:
|
|
20
|
-
timeout:
|
|
10
|
+
G1: Graph[_Node],
|
|
11
|
+
G2: Graph[_Node],
|
|
12
|
+
node_match: Callable[..., Incomplete] | None = None,
|
|
13
|
+
edge_match: Callable[..., Incomplete] | None = None,
|
|
14
|
+
node_subst_cost: Callable[..., Incomplete] | None = None,
|
|
15
|
+
node_del_cost: Callable[..., Incomplete] | None = None,
|
|
16
|
+
node_ins_cost: Callable[..., Incomplete] | None = None,
|
|
17
|
+
edge_subst_cost: Callable[..., Incomplete] | None = None,
|
|
18
|
+
edge_del_cost: Callable[..., Incomplete] | None = None,
|
|
19
|
+
edge_ins_cost: Callable[..., Incomplete] | None = None,
|
|
20
|
+
roots=None,
|
|
21
|
+
upper_bound: float | None = None,
|
|
22
|
+
timeout: float | None = None,
|
|
21
23
|
): ...
|
|
22
24
|
@_dispatchable
|
|
23
25
|
def optimal_edit_paths(
|
|
24
|
-
G1,
|
|
25
|
-
G2,
|
|
26
|
-
node_match: Incomplete | None = None,
|
|
27
|
-
edge_match: Incomplete | None = None,
|
|
28
|
-
node_subst_cost: Incomplete | None = None,
|
|
29
|
-
node_del_cost: Incomplete | None = None,
|
|
30
|
-
node_ins_cost: Incomplete | None = None,
|
|
31
|
-
edge_subst_cost: Incomplete | None = None,
|
|
32
|
-
edge_del_cost: Incomplete | None = None,
|
|
33
|
-
edge_ins_cost: Incomplete | None = None,
|
|
34
|
-
upper_bound:
|
|
26
|
+
G1: Graph[_Node],
|
|
27
|
+
G2: Graph[_Node],
|
|
28
|
+
node_match: Callable[..., Incomplete] | None = None,
|
|
29
|
+
edge_match: Callable[..., Incomplete] | None = None,
|
|
30
|
+
node_subst_cost: Callable[..., Incomplete] | None = None,
|
|
31
|
+
node_del_cost: Callable[..., Incomplete] | None = None,
|
|
32
|
+
node_ins_cost: Callable[..., Incomplete] | None = None,
|
|
33
|
+
edge_subst_cost: Callable[..., Incomplete] | None = None,
|
|
34
|
+
edge_del_cost: Callable[..., Incomplete] | None = None,
|
|
35
|
+
edge_ins_cost: Callable[..., Incomplete] | None = None,
|
|
36
|
+
upper_bound: float | None = None,
|
|
35
37
|
): ...
|
|
36
38
|
@_dispatchable
|
|
37
39
|
def optimize_graph_edit_distance(
|
|
38
|
-
G1,
|
|
39
|
-
G2,
|
|
40
|
-
node_match: Incomplete | None = None,
|
|
41
|
-
edge_match: Incomplete | None = None,
|
|
42
|
-
node_subst_cost: Incomplete | None = None,
|
|
43
|
-
node_del_cost: Incomplete | None = None,
|
|
44
|
-
node_ins_cost: Incomplete | None = None,
|
|
45
|
-
edge_subst_cost: Incomplete | None = None,
|
|
46
|
-
edge_del_cost: Incomplete | None = None,
|
|
47
|
-
edge_ins_cost: Incomplete | None = None,
|
|
48
|
-
upper_bound:
|
|
40
|
+
G1: Graph[_Node],
|
|
41
|
+
G2: Graph[_Node],
|
|
42
|
+
node_match: Callable[..., Incomplete] | None = None,
|
|
43
|
+
edge_match: Callable[..., Incomplete] | None = None,
|
|
44
|
+
node_subst_cost: Callable[..., Incomplete] | None = None,
|
|
45
|
+
node_del_cost: Callable[..., Incomplete] | None = None,
|
|
46
|
+
node_ins_cost: Callable[..., Incomplete] | None = None,
|
|
47
|
+
edge_subst_cost: Callable[..., Incomplete] | None = None,
|
|
48
|
+
edge_del_cost: Callable[..., Incomplete] | None = None,
|
|
49
|
+
edge_ins_cost: Callable[..., Incomplete] | None = None,
|
|
50
|
+
upper_bound: float | None = None,
|
|
49
51
|
) -> Generator[Incomplete, None, None]: ...
|
|
50
52
|
@_dispatchable
|
|
51
53
|
def optimize_edit_paths(
|
|
52
|
-
G1,
|
|
53
|
-
G2,
|
|
54
|
-
node_match: Incomplete | None = None,
|
|
55
|
-
edge_match: Incomplete | None = None,
|
|
56
|
-
node_subst_cost: Incomplete | None = None,
|
|
57
|
-
node_del_cost: Incomplete | None = None,
|
|
58
|
-
node_ins_cost: Incomplete | None = None,
|
|
59
|
-
edge_subst_cost: Incomplete | None = None,
|
|
60
|
-
edge_del_cost: Incomplete | None = None,
|
|
61
|
-
edge_ins_cost: Incomplete | None = None,
|
|
62
|
-
upper_bound:
|
|
54
|
+
G1: Graph[_Node],
|
|
55
|
+
G2: Graph[_Node],
|
|
56
|
+
node_match: Callable[..., Incomplete] | None = None,
|
|
57
|
+
edge_match: Callable[..., Incomplete] | None = None,
|
|
58
|
+
node_subst_cost: Callable[..., Incomplete] | None = None,
|
|
59
|
+
node_del_cost: Callable[..., Incomplete] | None = None,
|
|
60
|
+
node_ins_cost: Callable[..., Incomplete] | None = None,
|
|
61
|
+
edge_subst_cost: Callable[..., Incomplete] | None = None,
|
|
62
|
+
edge_del_cost: Callable[..., Incomplete] | None = None,
|
|
63
|
+
edge_ins_cost: Callable[..., Incomplete] | None = None,
|
|
64
|
+
upper_bound: float | None = None,
|
|
63
65
|
strictly_decreasing: bool = True,
|
|
64
|
-
roots
|
|
65
|
-
timeout:
|
|
66
|
+
roots=None,
|
|
67
|
+
timeout: float | None = None,
|
|
66
68
|
) -> Generator[Incomplete, None, Incomplete]: ...
|
|
67
69
|
@_dispatchable
|
|
68
70
|
def simrank_similarity(
|
|
69
|
-
G,
|
|
70
|
-
source:
|
|
71
|
-
target:
|
|
71
|
+
G: Graph[_Node],
|
|
72
|
+
source: _Node | None = None,
|
|
73
|
+
target: _Node | None = None,
|
|
72
74
|
importance_factor: float = 0.9,
|
|
73
75
|
max_iterations: int = 1000,
|
|
74
76
|
tolerance: float = 0.0001,
|
|
75
77
|
): ...
|
|
76
78
|
@_dispatchable
|
|
77
79
|
def panther_similarity(
|
|
78
|
-
G
|
|
80
|
+
G: Graph[_Node],
|
|
81
|
+
source: _Node,
|
|
82
|
+
k: int = 5,
|
|
83
|
+
path_length: int = 5,
|
|
84
|
+
c: float = 0.5,
|
|
85
|
+
delta: float = 0.1,
|
|
86
|
+
eps=None,
|
|
87
|
+
weight: str | None = "weight",
|
|
79
88
|
): ...
|
|
80
89
|
@_dispatchable
|
|
81
90
|
def generate_random_paths(
|
|
82
|
-
G
|
|
91
|
+
G: Graph[_Node],
|
|
92
|
+
sample_size: int,
|
|
93
|
+
path_length: int = 5,
|
|
94
|
+
index_map: SupportsGetItem[Incomplete, Incomplete] | None = None,
|
|
95
|
+
weight: str | None = "weight",
|
|
96
|
+
seed: int | RandomState | None = None,
|
|
83
97
|
) -> Generator[Incomplete, None, None]: ...
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator,
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
|
+
from collections.abc import Callable, Generator, Iterable
|
|
3
|
+
from typing import Any
|
|
3
4
|
|
|
4
5
|
from networkx.classes.graph import Graph, _Node
|
|
5
6
|
from networkx.utils.backends import _dispatchable
|
|
@@ -7,24 +8,26 @@ from networkx.utils.backends import _dispatchable
|
|
|
7
8
|
__all__ = ["all_simple_paths", "is_simple_path", "shortest_simple_paths", "all_simple_edge_paths"]
|
|
8
9
|
|
|
9
10
|
@_dispatchable
|
|
10
|
-
def is_simple_path(G: Graph[_Node], nodes:
|
|
11
|
+
def is_simple_path(G: Graph[_Node], nodes: Iterable[Incomplete]): ...
|
|
11
12
|
@_dispatchable
|
|
12
|
-
def all_simple_paths(
|
|
13
|
-
G: Graph[_Node], source: _Node, target: _Node, cutoff: Incomplete | None = None
|
|
14
|
-
) -> Generator[list[_Node], None, None]: ...
|
|
13
|
+
def all_simple_paths(G: Graph[_Node], source: _Node, target, cutoff: int | None = None) -> Generator[list[_Node], None, None]: ...
|
|
15
14
|
@_dispatchable
|
|
16
15
|
def all_simple_edge_paths(
|
|
17
|
-
G: Graph[_Node], source: _Node, target
|
|
16
|
+
G: Graph[_Node], source: _Node, target, cutoff: int | None = None
|
|
18
17
|
) -> Generator[list[_Node] | list[tuple[_Node, _Node]], None, list[_Node] | None]: ...
|
|
19
18
|
@_dispatchable
|
|
20
19
|
def shortest_simple_paths(
|
|
21
|
-
G: Graph[_Node],
|
|
20
|
+
G: Graph[_Node],
|
|
21
|
+
source: _Node,
|
|
22
|
+
target: _Node,
|
|
23
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = None,
|
|
22
24
|
) -> Generator[list[_Node], None, None]: ...
|
|
23
25
|
|
|
24
26
|
class PathBuffer:
|
|
25
27
|
paths: Incomplete
|
|
26
28
|
sortedpaths: Incomplete
|
|
27
29
|
counter: Incomplete
|
|
30
|
+
|
|
28
31
|
def __init__(self) -> None: ...
|
|
29
32
|
def __len__(self): ...
|
|
30
33
|
def push(self, cost, path) -> None: ...
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
2
|
from networkx.utils.backends import _dispatchable
|
|
3
|
+
from numpy.random import RandomState
|
|
4
4
|
|
|
5
5
|
@_dispatchable
|
|
6
|
-
def random_reference(G, niter: int = 1, connectivity: bool = True, seed:
|
|
6
|
+
def random_reference(G: Graph[_Node], niter: int = 1, connectivity: bool = True, seed: int | RandomState | None = None): ...
|
|
7
7
|
@_dispatchable
|
|
8
8
|
def lattice_reference(
|
|
9
|
-
G, niter: int = 5, D
|
|
9
|
+
G: Graph[_Node], niter: int = 5, D=None, connectivity: bool = True, seed: int | RandomState | None = None
|
|
10
10
|
): ...
|
|
11
11
|
@_dispatchable
|
|
12
|
-
def sigma(G, niter: int = 100, nrand: int = 10, seed:
|
|
12
|
+
def sigma(G: Graph[_Node], niter: int = 100, nrand: int = 10, seed: int | RandomState | None = None): ...
|
|
13
13
|
@_dispatchable
|
|
14
|
-
def omega(G, niter: int = 5, nrand: int = 10, seed:
|
|
14
|
+
def omega(G: Graph[_Node], niter: int = 5, nrand: int = 10, seed: int | RandomState | None = None): ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
2
|
from networkx.utils.backends import _dispatchable
|
|
3
|
+
from numpy.random import RandomState
|
|
4
4
|
|
|
5
5
|
@_dispatchable
|
|
6
|
-
def spanner(G, stretch, weight:
|
|
6
|
+
def spanner(G: Graph[_Node], stretch: float, weight: str | None = None, seed: int | RandomState | None = None): ...
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def effective_size(G, nodes: Incomplete | None = None, weight:
|
|
8
|
+
def effective_size(G: Graph[_Node], nodes: Iterable[Incomplete] | None = None, weight: str | None = None): ...
|
|
7
9
|
@_dispatchable
|
|
8
|
-
def constraint(G, nodes: Incomplete | None = None, weight:
|
|
10
|
+
def constraint(G: Graph[_Node], nodes: Iterable[Incomplete] | None = None, weight: str | None = None): ...
|
|
9
11
|
@_dispatchable
|
|
10
|
-
def local_constraint(G, u, v, weight:
|
|
12
|
+
def local_constraint(G: Graph[_Node], u: _Node, v: _Node, weight: str | None = None): ...
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def dedensify(G, threshold, prefix
|
|
8
|
+
def dedensify(G: Graph[_Node], threshold: int, prefix=None, copy: bool | None = True): ...
|
|
7
9
|
@_dispatchable
|
|
8
10
|
def snap_aggregation(
|
|
9
|
-
G,
|
|
11
|
+
G: Graph[_Node],
|
|
10
12
|
node_attributes,
|
|
11
|
-
edge_attributes=(),
|
|
13
|
+
edge_attributes: Iterable[Incomplete] | None = (),
|
|
12
14
|
prefix: str = "Supernode-",
|
|
13
15
|
supernode_attribute: str = "group",
|
|
14
16
|
superedge_attribute: str = "types",
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.digraph import DiGraph
|
|
2
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
3
|
from networkx.utils.backends import _dispatchable
|
|
4
|
+
from numpy.random import RandomState
|
|
4
5
|
|
|
5
6
|
@_dispatchable
|
|
6
|
-
def directed_edge_swap(G, *, nswap: int = 1, max_tries: int = 100, seed:
|
|
7
|
+
def directed_edge_swap(G: DiGraph[_Node], *, nswap: int = 1, max_tries: int = 100, seed: int | RandomState | None = None): ...
|
|
7
8
|
@_dispatchable
|
|
8
|
-
def double_edge_swap(G, nswap: int = 1, max_tries: int = 100, seed:
|
|
9
|
+
def double_edge_swap(G: Graph[_Node], nswap: int = 1, max_tries: int = 100, seed: int | RandomState | None = None): ...
|
|
9
10
|
@_dispatchable
|
|
10
|
-
def connected_double_edge_swap(
|
|
11
|
+
def connected_double_edge_swap(
|
|
12
|
+
G: Graph[_Node], nswap: int = 1, _window_threshold: int = 3, seed: int | RandomState | None = None
|
|
13
|
+
): ...
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
2
|
from networkx.utils.backends import _dispatchable
|
|
4
3
|
|
|
5
4
|
@_dispatchable
|
|
6
|
-
def is_threshold_graph(G): ...
|
|
5
|
+
def is_threshold_graph(G: Graph[_Node]): ...
|
|
7
6
|
@_dispatchable
|
|
8
|
-
def find_threshold_graph(G, create_using:
|
|
7
|
+
def find_threshold_graph(G: Graph[_Node], create_using: Graph[_Node] | None = None): ...
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
2
|
from networkx.utils.backends import _dispatchable
|
|
3
|
+
from numpy.random import RandomState
|
|
4
4
|
|
|
5
5
|
@_dispatchable
|
|
6
|
-
def is_tournament(G): ...
|
|
6
|
+
def is_tournament(G: Graph[_Node]): ...
|
|
7
7
|
@_dispatchable
|
|
8
|
-
def hamiltonian_path(G): ...
|
|
8
|
+
def hamiltonian_path(G: Graph[_Node]): ...
|
|
9
9
|
@_dispatchable
|
|
10
|
-
def random_tournament(n, seed:
|
|
10
|
+
def random_tournament(n: int, seed: int | RandomState | None = None): ...
|
|
11
11
|
@_dispatchable
|
|
12
|
-
def score_sequence(G): ...
|
|
12
|
+
def score_sequence(G: Graph[_Node]): ...
|
|
13
13
|
@_dispatchable
|
|
14
|
-
def is_reachable(G, s, t): ...
|
|
14
|
+
def is_reachable(G: Graph[_Node], s: _Node, t: _Node): ...
|
|
15
15
|
@_dispatchable
|
|
16
|
-
def is_strongly_connected(G): ...
|
|
16
|
+
def is_strongly_connected(G: Graph[_Node]): ...
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator
|
|
2
|
+
from collections.abc import Callable, Generator
|
|
3
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
5
|
from networkx.utils.backends import _dispatchable
|
|
5
6
|
|
|
6
7
|
@_dispatchable
|
|
7
|
-
def bfs_beam_edges(
|
|
8
|
+
def bfs_beam_edges(
|
|
9
|
+
G: Graph[_Node], source: _Node, value: Callable[..., Incomplete], width: int | None = None
|
|
10
|
+
) -> Generator[Incomplete, Incomplete, Incomplete]: ...
|