You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add hyperbolic random graph model generator
* Loosen trait constraints and simplify structure for longest_path (#1195)
In the recently merged #1192 a new generic DAG longest_path function was
added to rustworkx-core. However, the trait bounds on the function were
a bit tighter than they needed to be. The traits were forcing NodeId to
be of a NodeIndex type and this wasn't really required. The only
requirement that the NodeId type can be put on a hashmap and do a
partial compare (that implements Hash, Eq, and PartialOrd). Also the
IntoNeighborsDirected wasn't required because it's methods weren't ever
used. This commit loosens the traits bounds to facilitate this. At the
same time this also simplifies the code structure a bit to reduce the
separation of the rust code structure in the rustworkx crate using
longest_path().
* use vector references
* change to slice (clippy)
* generalize to H^D, improve numerical accuracy
* allow infinite coordinate
* handle infinity in hyperbolic distance
* remove unused import (clippy)
* fix python stub
* Rename deprecated cargo config file (#1211)
This commit migrates the .cargo/config file which has been deprecated to
the new path .cargo/config.toml. This will fix warnings that are emitted
when compiling with the latest stable release. This new path has been
supported since Rust 1.38 which is much older than our current MSRV of
1.70.
* fix hyperbolic distance, swap r and beta, infer time coordinate
* use mul_add in hyperbolic distance, remove release note
* replace clone with dereference
---------
Co-authored-by: Matthew Treinish <[email protected]>
Co-authored-by: Ivan Carvalho <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
0 commit comments