/// Returns a `Strategy` that generates random package IDs from this graph.
///
/// Requires the `proptest010` feature to be enabled.
///
/// ## Panics
///
/// Panics if there are no packages in this `PackageGraph`.
Returns a `Strategy` that generates random package IDs from this graph.
Requires the `proptest010` feature to be enabled.
Returns a ` Strategy ` that generates random package IDs from this graph . Requires the ` proptest010 ` feature to be enabled .
pub fn prop010_id_strategy(&self) -> impl Strategy<Value = &PackageId> {
        let dep_graph = &self.dep_graph;
        any::<prop::sample::Index>().prop_map(move |index| {
            let package_ix = NodeIndex::new(index.index(dep_graph.node_count()));
            &self.dep_graph[package_ix]
        })
    }
pub fn prop010_id_strategy ( & self ) -> impl Strategy < Value = & PackageId > { let dep_graph = & self . dep_graph ; any :: < prop :: sample :: Index > ( ) . prop_map ( move | index | { let package_ix = NodeIndex :: new ( index . index ( dep_graph . node_count ( ) ) ) ; & self . dep_graph [ package_ix ] } ) }
Returns a `Strategy` that generates random package IDs from this graph.
Returns a ` Strategy ` that generates random package IDs from this graph .
&self
panics
Panics if there are no packages in this `PackageGraph`.
Panics if there are no packages in this ` PackageGraph ` .