Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ehancement/1238 no zip np array (#1253)
This PR changes adds the following methods: - `StellarGraph.edges_arrays` - `StellarGraph.neighbors_arrays` - `StellarGraph.in_nodes_arrays` - `StellarGraph.out_nodes_arrays` Which return a tuple of np.arrays instead of a list of tuples as the old correpsonding methods without the `_array` suffix did. The old methods now simply wrap the new `_array` methods to preserve the API. See #1238 * _transform edges no returns a tuple of numpy arrays * edges now returns a tuple of numpy arrays * fixes * fix tests * fix tests * fix tests * formatting * update doc strings * fix tests * add compatability for passing edgelists from edge splitter * add in `edge_arrays` function * add to_edges function in EdgeList * added .*_arrays methods for neighbor methods * docstring update * docstring update * docstring update * docstring update * backwards compatability * test new conversion methods * Update tests/data/test_edge_splitter.py Co-Authored-By: kevin <33508488+kjun9@users.noreply.github.com> * Update tests/datasets/test_datasets.py Co-Authored-By: kevin <33508488+kjun9@users.noreply.github.com> * fix * revert fullbatch tests back * revert tests back * revert demo * removed edgelist * Update stellargraph/core/graph.py Co-authored-by: kevin <33508488+kjun9@users.noreply.github.com> * doc string update * removed redundant code * merge fixes * reverted files back * reverted files back * reverted files back * docstring fixes * fix typo * samples use neighbor arrays * benchmark uses neighbor arrays Co-authored-by: kevin <33508488+kjun9@users.noreply.github.com>
- Loading branch information
1 parent
9b81deb
commit ef81955
Showing
3 changed files
with
164 additions
and
66 deletions.
There are no files selected for viewing
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