Skip to content

Commit

Permalink
Merge branch 'master' into vector-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ricopinazo committed Oct 2, 2023
2 parents 45960e6 + de4b942 commit c2a7db3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
name: Setup Rust
with:
profile: minimal
toolchain: nightly
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run benchmark (Unix)
run: |
set -o pipefail
cargo +nightly bench --bench base -p raphtory-benchmark -- --output-format=bencher | tee benchmark-result.txt
cargo bench --bench base -p raphtory-benchmark -- --output-format=bencher | tee benchmark-result.txt
- name: Delete cargo.lock if it exists
run: |
rm -f Cargo.lock
Expand Down
2 changes: 1 addition & 1 deletion docs/source/reference/algorithms/algorithmresult.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Algorithm Result
*****************

.. autoclass:: raphtory.AlgorithmResultStrU64
.. autoclass:: raphtory.AlgorithmResult
:autosummary:
:members:
:undoc-members:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/reference/export/libraries.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ Libraries
***********

.. autofunction:: raphtory.export.to_networkx

.. autofunction:: raphtory.export.to_pyvis
1 change: 0 additions & 1 deletion docs/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ methods.
core/index
algorithms/index
export/index
visualisation/index
nullmodels/index
graphql/index
graphgen/index
4 changes: 0 additions & 4 deletions docs/source/reference/visualisation/draw.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/reference/visualisation/index.rst

This file was deleted.

4 changes: 2 additions & 2 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use graphql::*;
use pyo3::prelude::*;
use raphtory_core::python::{
graph::{
algorithm_result::AlgorithmResultStrU64,
algorithm_result::AlgorithmResult,
edge::{PyDirection, PyEdge, PyEdges},
graph::PyGraph,
graph_with_deletions::PyGraphWithDeletions,
Expand Down Expand Up @@ -44,7 +44,7 @@ fn raphtory(py: Python<'_>, m: &PyModule) -> PyResult<()> {
let algorithm_module = PyModule::new(py, "algorithms")?;
algorithm_module.add_function(wrap_pyfunction!(global_reciprocity, algorithm_module)?)?;
algorithm_module.add_function(wrap_pyfunction!(all_local_reciprocity, algorithm_module)?)?;
m.add_class::<AlgorithmResultStrU64>()?;
m.add_class::<AlgorithmResult>()?;

algorithm_module.add_function(wrap_pyfunction!(triplet_count, algorithm_module)?)?;
algorithm_module.add_function(wrap_pyfunction!(local_triangle_count, algorithm_module)?)?;
Expand Down
3 changes: 3 additions & 0 deletions raphtory/src/python/graph/algorithm_result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ macro_rules! py_algorithm_result_ord_hash_eq {
};
}

py_algorithm_result!(AlgorithmResult, String, String);
py_algorithm_result_ord_hash_eq!(AlgorithmResult, String, String);

py_algorithm_result!(AlgorithmResultStrU64, String, u64);
py_algorithm_result_ord_hash_eq!(AlgorithmResultStrU64, String, u64);

Expand Down

0 comments on commit c2a7db3

Please sign in to comment.