-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prepare 0.9.0 release This commit starts the preparation for the 0.9.0 release. It moves all the release notes for the release into a separate folder (to distinguish them from notes for future releases) and also reworks the content of the release notes and updates the documentation for the release. This commit should be the last one merged before releasing 0.9.0 to ensure we've moved and updated all the release notes before the release. Partially implements #328 * Move new release notes * Add readme section on optional dependencies * Fix lint * Move new release notes * Update readme based on review comments * Update index intro based on review comments * Update release prelude to mention pydot_draw * Move new release notes * Use mpl_draw in docstrings * Add example to graphviz_draw doc * Update add-transitivity-function-c32d2bbbf3857c40.yaml * Apply suggestions from code review Co-authored-by: Ivan Carvalho <[email protected]> * Update prepare-0.9-dab64f0197fc6233.yaml * Update pydot-drawer-c5df0aa830679748.yaml * Update README.md * Update multigraph release note * Move and update last new release note * Add examples to spring layout release note * Add examples to random layout * Update add-random-layout-c1c2751be971e5d0.yaml
- Loading branch information
Showing
54 changed files
with
533 additions
and
488 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _networkx: | ||
|
||
########################### | ||
retworkx for networkx users | ||
########################### | ||
|
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
23 changes: 23 additions & 0 deletions
23
releasenotes/notes/0.9.0/add-binomial-tree-graph-generator-1f6ff6ba3809b901.yaml
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 @@ | ||
--- | ||
features: | ||
- | | ||
Added new generator functions, | ||
:func:`retworkx.generators.binomial_tree_graph` and | ||
:func:`retworkx.generators.directed_binomial_tree_graph`, for constructing | ||
a binomial tree graph. For example: | ||
.. jupyter-execute:: | ||
import retworkx | ||
from retworkx.visualization import mpl_draw | ||
graph = retworkx.generators.binomial_tree_graph(4) | ||
mpl_draw(graph) | ||
.. jupyter-execute:: | ||
import retworkx | ||
from retworkx.visualization import mpl_draw | ||
graph = retworkx.generators.directed_binomial_tree_graph(4) | ||
mpl_draw(graph) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/0.9.0/add-random-geometric-graph-ef131e3955c6b178.yaml
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 @@ | ||
--- | ||
features: | ||
- | | ||
Added new function :func:`~retworkx.random_geometric_graph` which can be | ||
used to generate random geometric graphs. For example: | ||
.. jupyter-execute:: | ||
import retworkx | ||
from retworkx.visualization import mpl_draw | ||
graph = retworkx.random_geometric_graph(8, .95, 5) | ||
mpl_draw(graph) |
50 changes: 50 additions & 0 deletions
50
releasenotes/notes/0.9.0/add-random-layout-c1c2751be971e5d0.yaml
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,50 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new layout function, :func:`retworkx.random_layout` (and it's | ||
equivalent per type variants :func:`retworkx.graph_random_layout` and | ||
:func:`retworkx.diraph_random_layout`) to generate a random layout which | ||
can be used for visualizations. For example: | ||
.. jupyter-execute:: | ||
import retworkx | ||
from retworkx.visualization import mpl_draw | ||
graph = retworkx.generators.directed_grid_graph(5, 5) | ||
layout = retworkx.random_layout(graph) | ||
mpl_draw(graph, pos=layout) | ||
or with the :func:`~retworkx.visualization.graphviz_draw` function: | ||
.. jupyter-execute:: | ||
import retworkx | ||
from retworkx.visualization import graphviz_draw | ||
graph = retworkx.generators.directed_grid_graph(5, 5) | ||
layout = retworkx.random_layout(graph) | ||
for i in range(25): | ||
graph[i] = i | ||
def node_attr_fn(node): | ||
point = layout[node] | ||
return { | ||
"shape": "circle", | ||
"pos": '"%s,%s!"' % (point[0], point[1]), | ||
"fillcolor": "yellow", | ||
"style": "filled", | ||
"fixedsize": "true" | ||
} | ||
graphviz_draw(graph, node_attr_fn=node_attr_fn, method='fdp') | ||
- | | ||
A new custom return class, :class:`retworkx.Pos2DMapping`, has been | ||
added. This class will be returned by layout functions and is a drop | ||
in replacement for an immutable read-only dictionary of the form:: | ||
{1: [0.1, 0.5]} | ||
where the keys are node indices and the values are a 2 element sequence | ||
that represents the position for the node. |
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/0.9.0/add-subgraph-isomorphism-d22c1b5b015769ec.yaml
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,6 @@ | ||
--- | ||
features: | ||
- | | ||
Added a new function, :func:`~retworkx.is_subgraph_isomorphic`, to | ||
determine if two graphs of the same type (either :class:`~retworkx.PyGraph` | ||
or :class:`~retworkx.PyDiGraph`) are induced subgraph isomorphic. |
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/0.9.0/add-transitivity-function-c32d2bbbf3857c40.yaml
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,6 @@ | ||
--- | ||
features: | ||
- | | ||
A new function, :func:`~retworkx.transitivity`, was added to | ||
calculate the transitivity coefficient of a :class:`~retworkx.PyGraph` | ||
or a :class:`~retworkx.PyDiGraph` object. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/0.9.0/expand-isomorphism-cfb646cfef66fa25.yaml
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 @@ | ||
--- | ||
features: | ||
- | | ||
The :func:`~retworkx.is_isomorphic` function has been expanded so it can | ||
now also take in a :class:`~retworkx.PyGraph` in addition to the | ||
the :class:`~retworkx.PyDiGraph` already supported. | ||
- | | ||
The :func:`~retworkx.is_isomorphic` function now has two new optional | ||
kwargs ``node_matcher`` and ``edge_matcher`` which can be used to specify | ||
functions to use for comparing node and edge data payloads. | ||
- | | ||
The :func:`~retworkx.is_isomorphic_node_match` function has been expanded | ||
so it can take in a :class:`~retworkx.PyGraph` in addition to the | ||
:class:`~retworkx.PyDiGraph` it already supported. |
23 changes: 23 additions & 0 deletions
23
releasenotes/notes/0.9.0/extend-generators-07a5d34d5e637a6a.yaml
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 @@ | ||
--- | ||
features: | ||
- | | ||
Added new generator functions, | ||
:func:`retworkx.generators.directed_hexagonal_lattice_graph` and | ||
:func:`retworkx.generators.hexagonal_lattice_graph`, for constructing a | ||
hexagonal lattice graph. For example: | ||
.. jupyter-execute:: | ||
import retworkx | ||
from retworkx.visualization import mpl_draw | ||
graph = retworkx.generators.directed_hexagonal_lattice_graph(3, 3) | ||
mpl_draw(graph) | ||
.. jupyter-execute:: | ||
import retworkx | ||
from retworkx.visualization import mpl_draw | ||
graph = retworkx.generators.hexagonal_lattice_graph(3, 3) | ||
mpl_draw(graph) |
8 changes: 8 additions & 0 deletions
8
releasenotes/notes/0.9.0/find-successors-by-d3589b1b1d0b1633.yaml
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,8 @@ | ||
--- | ||
features: | ||
- | | ||
Added two new methods, :meth:`~retworkx.PyDiGraph.find_successors_by_edge` | ||
and :meth:`~retworkx.PyDiGraph.find_predecessors_by_edge`, to | ||
:class:`~retworkx.PyDiGraph`. These methods efficiently retrieve the | ||
neighbors in the graph which are connected to a node with edges matching a | ||
filter function. |
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/0.9.0/is-isomorphic-matching-order-be0cfa8b796cd55c.yaml
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 @@ | ||
--- | ||
features: | ||
- | | ||
The :func:`~retworkx.is_isomorphic` and | ||
:func:`~retworkx.is_isomorphic_node_match` functions have a new kwarg, | ||
``id_order`` which is used to adjust the node matching order used. | ||
If you set ``id_order=False`` then the matching order used is the heuristic | ||
matching order proposed in the | ||
`VF2++ paper <http://bolyai.cs.elte.hu/egres/tr/egres-18-03.pdf>`__. If you | ||
want to retain use the order based on node ids, you can set | ||
``id_order=True`` which is the default behavior. |
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/0.9.0/minimum-spanning-tree-4afa29b3c0dbd2fb.yaml
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 @@ | ||
--- | ||
features: | ||
- | | ||
Added new function, :func:`~retworkx.minimum_spanning_tree`, to calculate the | ||
minimum spanning tree of a :class:`~retworkx.PyGraph` object and return the | ||
MST as a new :class:`~retworkx.PyGraph` object. | ||
- | | ||
Added a new function, :func:`~retworkx.minimum_spanning_edges`, to calculate | ||
the minimum spanning tree of a :class:`~retworkx.PyGraph` object and return | ||
the :class:`~retworkx.WeightedEdgeList` for the weighted edge list of the | ||
MST of a graph. |
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
releasenotes/notes/0.9.0/multigraph-to-directed-generators-dc7bbb53480d5d0a.yaml
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 @@ | ||
--- | ||
features: | ||
- | | ||
A new kwarg, ``multigraph`` was added to the :class:`~retworkx.PyDiGraph` | ||
generator functions: | ||
* :func:`retworkx.generators.directed_cycle_graph` | ||
* :func:`retworkx.generators.directed_path_graph` | ||
* :func:`retworkx.generators.directed_star_graph` | ||
* :func:`retworkx.generators.directed_mesh_graph` | ||
* :func:`retworkx.generators.directed_grid_graph` | ||
This can be used to set whether the generated | ||
:class:`~retworkx.PyDiGraph` objects are multi graphs or not (to set | ||
whether parallel edges can be added or not). By default this is set to | ||
``True``. |
13 changes: 13 additions & 0 deletions
13
releasenotes/notes/0.9.0/prepare-0.9-dab64f0197fc6233.yaml
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 @@ | ||
--- | ||
prelude: | | ||
This release is a new feature release that includes a plethora of new | ||
features and bug fixes. The highlights of this release are the introduction | ||
of the :mod:`retwork.visualization` module, which includes a | ||
`matplotlib <https://matplotlib.org/>`__ based drawer | ||
(:func:`~retworkx.visualization.mpl_draw`) and a | ||
`graphviz <https://graphviz.org/>`__ based drawer | ||
(:func:`~retworkx.visualization.graphviz_draw`), and layout functions such | ||
as :func:`~retworkx.spring_layout` for generating a layout in | ||
visualization. Additionally, the generator functions in | ||
:mod:`retworkx.generators` have been expanded to include new graph | ||
generators, and many new algorithm functions have been added. |
Oops, something went wrong.