-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganize API docs into subpages #927
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8dbbf17
Reorganize API docs into subfolders
Eric-Arellano edd8f2a
Merge branch 'main' into reorganize-api-docs
Eric-Arellano 2559f05
Merge branch 'main' of https://github.com/Qiskit/rustworkx into reorg…
Eric-Arellano 232221a
Increase maxdepth for functions page
Eric-Arellano ae3208f
Merge branch 'main' into reorganize-api-docs
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _centrality: | ||
|
||
Centrality | ||
========== | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.betweenness_centrality | ||
rustworkx.edge_betweenness_centrality | ||
rustworkx.eigenvector_centrality | ||
rustworkx.katz_centrality | ||
rustworkx.closeness_centrality |
26 changes: 26 additions & 0 deletions
26
docs/source/api/algorithm_functions/connectivity_and_cycles.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _connectivity-cycle-finding: | ||
|
||
Connectivity and Cycles | ||
======================= | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.number_connected_components | ||
rustworkx.connected_components | ||
rustworkx.node_connected_component | ||
rustworkx.is_connected | ||
rustworkx.strongly_connected_components | ||
rustworkx.number_weakly_connected_components | ||
rustworkx.weakly_connected_components | ||
rustworkx.is_weakly_connected | ||
rustworkx.cycle_basis | ||
rustworkx.simple_cycles | ||
rustworkx.digraph_find_cycle | ||
rustworkx.articulation_points | ||
rustworkx.biconnected_components | ||
rustworkx.chain_decomposition | ||
rustworkx.all_simple_paths | ||
rustworkx.all_pairs_all_simple_paths | ||
rustworkx.stoer_wagner_min_cut | ||
rustworkx.longest_simple_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. _dag-algorithms: | ||
|
||
DAG Algorithms | ||
============== | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.dag_longest_path | ||
rustworkx.dag_longest_path_length | ||
rustworkx.dag_weighted_longest_path | ||
rustworkx.dag_weighted_longest_path_length | ||
rustworkx.is_directed_acyclic_graph | ||
rustworkx.layers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _graph-ops: | ||
|
||
Graph Operations | ||
================ | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.complement | ||
rustworkx.union | ||
rustworkx.cartesian_product |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. _algorithm_api: | ||
|
||
Algorithm Functions | ||
=================== | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
centrality | ||
connectivity_and_cycles | ||
dag_algorithms | ||
graph_operations | ||
isomorphism | ||
link_analysis | ||
matching | ||
other | ||
shortest_paths | ||
traversal | ||
tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _isomorphism: | ||
|
||
Isomorphism | ||
=========== | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.is_isomorphic | ||
rustworkx.is_subgraph_isomorphic | ||
rustworkx.is_isomorphic_node_match | ||
rustworkx.vf2_mapping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. _link-analysis: | ||
|
||
Link Analysis | ||
============= | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.pagerank | ||
rustworkx.hits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _matching: | ||
|
||
Matching | ||
======== | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.max_weight_matching | ||
rustworkx.is_matching | ||
rustworkx.is_maximal_matching |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.. _other-algorithms: | ||
|
||
Other Algorithm Functions | ||
========================= | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.adjacency_matrix | ||
rustworkx.transitivity | ||
rustworkx.core_number | ||
rustworkx.graph_greedy_color | ||
rustworkx.graph_greedy_edge_color | ||
rustworkx.graph_line_graph | ||
rustworkx.metric_closure | ||
rustworkx.is_planar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. _shortest-paths: | ||
|
||
Shortest Paths | ||
============== | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.dijkstra_shortest_paths | ||
rustworkx.dijkstra_shortest_path_lengths | ||
rustworkx.all_pairs_dijkstra_shortest_paths | ||
rustworkx.all_pairs_dijkstra_path_lengths | ||
rustworkx.bellman_ford_shortest_paths | ||
rustworkx.bellman_ford_shortest_path_lengths | ||
rustworkx.all_pairs_bellman_ford_shortest_paths | ||
rustworkx.all_pairs_bellman_ford_path_lengths | ||
rustworkx.negative_edge_cycle | ||
rustworkx.find_negative_cycle | ||
rustworkx.distance_matrix | ||
rustworkx.floyd_warshall | ||
rustworkx.floyd_warshall_numpy | ||
rustworkx.astar_shortest_path | ||
rustworkx.k_shortest_path_lengths | ||
rustworkx.num_shortest_paths_unweighted | ||
rustworkx.unweighted_average_shortest_path_length |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. _traversal: | ||
|
||
Traversal | ||
========= | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.dfs_edges | ||
rustworkx.dfs_search | ||
rustworkx.bfs_successors | ||
rustworkx.bfs_predecessors | ||
rustworkx.bfs_search | ||
rustworkx.dijkstra_search | ||
rustworkx.topological_sort | ||
rustworkx.lexicographical_topological_sort | ||
rustworkx.descendants | ||
rustworkx.ancestors | ||
rustworkx.collect_runs | ||
rustworkx.collect_bicolor_runs | ||
rustworkx.visit.DFSVisitor | ||
rustworkx.visit.BFSVisitor | ||
rustworkx.visit.DijkstraVisitor | ||
rustworkx.TopologicalSorter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _tree: | ||
|
||
Tree | ||
==== | ||
|
||
.. autosummary:: | ||
:toctree: ../../apiref | ||
|
||
rustworkx.minimum_spanning_edges | ||
rustworkx.minimum_spanning_tree | ||
rustworkx.steiner_tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. _converters: | ||
|
||
Converters | ||
========== | ||
|
||
.. autosummary:: | ||
:toctree: ../apiref | ||
|
||
rustworkx.networkx_converter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Custom Return Types | ||
=================== | ||
|
||
.. autosummary:: | ||
:toctree: ../apiref | ||
|
||
rustworkx.BFSSuccessors | ||
rustworkx.BFSPredecessors | ||
rustworkx.NodeIndices | ||
rustworkx.EdgeIndices | ||
rustworkx.EdgeList | ||
rustworkx.WeightedEdgeList | ||
rustworkx.EdgeIndexMap | ||
rustworkx.PathMapping | ||
rustworkx.PathLengthMapping | ||
rustworkx.Pos2DMapping | ||
rustworkx.AllPairsPathMapping | ||
rustworkx.AllPairsPathLengthMapping | ||
rustworkx.CentralityMapping | ||
rustworkx.EdgeCentralityMapping | ||
rustworkx.Chains | ||
rustworkx.NodeMap | ||
rustworkx.ProductNodeMap | ||
rustworkx.BiconnectedComponents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Exceptions | ||
========== | ||
|
||
.. autosummary:: | ||
:toctree: ../apiref | ||
|
||
rustworkx.InvalidNode | ||
rustworkx.DAGWouldCycle | ||
rustworkx.NoEdgeBetweenNodes | ||
rustworkx.DAGHasCycle | ||
rustworkx.NegativeCycle | ||
rustworkx.NoSuitableNeighbors | ||
rustworkx.NoPathFound | ||
rustworkx.NullGraph | ||
rustworkx.visit.StopSearch | ||
rustworkx.visit.PruneSearch | ||
rustworkx.JSONSerializationError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _generator_funcs: | ||
|
||
Generators | ||
========== | ||
|
||
.. autosummary:: | ||
:toctree: ../apiref | ||
|
||
rustworkx.generators.cycle_graph | ||
rustworkx.generators.directed_cycle_graph | ||
rustworkx.generators.path_graph | ||
rustworkx.generators.directed_path_graph | ||
rustworkx.generators.star_graph | ||
rustworkx.generators.directed_star_graph | ||
rustworkx.generators.mesh_graph | ||
rustworkx.generators.directed_mesh_graph | ||
rustworkx.generators.grid_graph | ||
rustworkx.generators.directed_grid_graph | ||
rustworkx.generators.binomial_tree_graph | ||
rustworkx.generators.directed_binomial_tree_graph | ||
rustworkx.generators.hexagonal_lattice_graph | ||
rustworkx.generators.directed_hexagonal_lattice_graph | ||
rustworkx.generators.heavy_square_graph | ||
rustworkx.generators.directed_heavy_square_graph | ||
rustworkx.generators.heavy_hex_graph | ||
rustworkx.generators.directed_heavy_hex_graph | ||
rustworkx.generators.lollipop_graph | ||
rustworkx.generators.generalized_petersen_graph | ||
rustworkx.generators.barbell_graph | ||
rustworkx.generators.full_rary_tree | ||
rustworkx.generators.empty_graph | ||
rustworkx.generators.directed_empty_graph | ||
rustworkx.generators.complete_graph | ||
rustworkx.generators.directed_complete_graph |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Graph Classes | ||
============= | ||
|
||
.. autosummary:: | ||
:toctree: ../apiref | ||
|
||
rustworkx.PyGraph | ||
rustworkx.PyDiGraph | ||
rustworkx.PyDAG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. _rustworkx: | ||
|
||
Rustworkx API Reference | ||
======================= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
graph_classes | ||
algorithm_functions/index | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
generators | ||
random_graph_generator_functions | ||
layout_functions | ||
serialization | ||
converters | ||
pydigraph_api_functions | ||
pygraph_api_functions | ||
exceptions | ||
custom_return_types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. _layout-functions: | ||
|
||
Layout Functions | ||
================ | ||
|
||
.. autosummary:: | ||
:toctree: ../apiref | ||
|
||
rustworkx.random_layout | ||
rustworkx.spring_layout | ||
rustworkx.bipartite_layout | ||
rustworkx.circular_layout | ||
rustworkx.shell_layout | ||
rustworkx.spiral_layout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.. _api-functions-pydigraph: | ||
|
||
API functions for PyDigraph | ||
=========================== | ||
|
||
These functions are algorithm functions that are type specific for | ||
:class:`~rustworkx.PyDiGraph` or :class:`~rustworkx.PyDAG` objects. Universal | ||
functions from Retworkx API that work for both graph types internally call | ||
the functions from the explicitly typed based on the data type. | ||
|
||
.. autosummary:: | ||
:toctree: ../apiref | ||
|
||
rustworkx.digraph_is_isomorphic | ||
rustworkx.digraph_is_subgraph_isomorphic | ||
rustworkx.digraph_vf2_mapping | ||
rustworkx.digraph_distance_matrix | ||
rustworkx.digraph_floyd_warshall | ||
rustworkx.digraph_floyd_warshall_numpy | ||
rustworkx.digraph_adjacency_matrix | ||
rustworkx.digraph_all_simple_paths | ||
rustworkx.digraph_all_pairs_all_simple_paths | ||
rustworkx.digraph_astar_shortest_path | ||
rustworkx.digraph_dijkstra_shortest_paths | ||
rustworkx.digraph_all_pairs_dijkstra_shortest_paths | ||
rustworkx.digraph_dijkstra_shortest_path_lengths | ||
rustworkx.digraph_all_pairs_dijkstra_path_lengths | ||
rustworkx.digraph_bellman_ford_shortest_path_lengths | ||
rustworkx.digraph_bellman_ford_shortest_path_lengths | ||
rustworkx.digraph_all_pairs_bellman_ford_shortest_paths | ||
rustworkx.digraph_all_pairs_bellman_ford_path_lengths | ||
rustworkx.digraph_k_shortest_path_lengths | ||
rustworkx.digraph_dfs_edges | ||
rustworkx.digraph_dfs_search | ||
rustworkx.digraph_find_cycle | ||
rustworkx.digraph_transitivity | ||
rustworkx.digraph_core_number | ||
rustworkx.digraph_complement | ||
rustworkx.digraph_union | ||
rustworkx.digraph_tensor_product | ||
rustworkx.digraph_cartesian_product | ||
rustworkx.digraph_random_layout | ||
rustworkx.digraph_bipartite_layout | ||
rustworkx.digraph_circular_layout | ||
rustworkx.digraph_shell_layout | ||
rustworkx.digraph_spiral_layout | ||
rustworkx.digraph_spring_layout | ||
rustworkx.digraph_num_shortest_paths_unweighted | ||
rustworkx.digraph_betweenness_centrality | ||
rustworkx.digraph_edge_betweenness_centrality | ||
rustworkx.digraph_closeness_centrality | ||
rustworkx.digraph_eigenvector_centrality | ||
rustworkx.digraph_katz_centrality | ||
rustworkx.digraph_unweighted_average_shortest_path_length | ||
rustworkx.digraph_bfs_search | ||
rustworkx.digraph_dijkstra_search | ||
rustworkx.digraph_node_link_json | ||
rustworkx.digraph_longest_simple_path |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think making this depth 2 would be nice so we still retain the list of functions. Especially in the move to furo depth 2 would be needed to show each function in the side bar right? But also for the current pytorch based theme I think having the full function list on the api page is useful, even if a bit overwhelming at times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxdepth
has zero impact on Furo's left sidebar. This is how it renders even with maxdepth set to 1Sounds reasonable to me. We can always change it with one line if we don't like it.