All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
IndexType
has been changed. It is now required that IndexType::from_usize
and IndexType::to_usize
are inverses of each other and that no wrapping must take place. This is a breaking change for any user-defined IndexType
implementations.IndexType
must now implement Unsigned
and AtMostUsize
from the funty
crate. This is a breaking change for any user-defined IndexType
implementations.VisitMap
for FixedBitSet
has been relaxed. Instead of restricting to IndexType
it now only requires SafeCast<usize>
.petgraph::visit
to petgraph-core
petgraph::EdgeType
to petgraph-core
petgraph::Direction
to petgraph-core
petgraph::Incoming
to petgraph-core
petgraph::Outgoing
to petgraph-core
petgraph::EdgeDirection
to petgraph-core
petgraph::graph::IndexType
to petgraph-core
petgraph::IntoWeightedEdge
to petgraph-core
petgraph::macros
to petgraph-core
IndexMap
now implements VisitMap
SafeCast
for casting between usize
and IndexType
FromIndexType
for casting from IndexType
to NodeIndex
/EdgeIndex
From
, because it allows for generic functions that switch between different NodeIndex
types easily, without needing to specify the IndexType
explicitly.IntoIndexType
for casting from NodeIndex
/EdgeIndex
to IndexType
Into
, because it allows for generic functions that switch between different NodeIndex
types easily, without needing to specify the IndexType
explicitly.petgraph-core::visit
is deprecated in favor of a set of traits in petgraph-core
IndexType::index
is deprecated in favor of IndexType::to_usize
IndexType::new
is deprecated in favor of IndexType::from_usize