Trait WithinWeightThreshold

Source
pub trait WithinWeightThreshold<W> {
    // Required method
    fn cells_within_weight_threshold(
        &self,
        origin_cell: H3Cell,
        weight_threshold: W,
    ) -> Result<H3CellMap<W>, Error>;
}
Expand description

Find all cells connected to the graph around a origin cell within a given threshold

Required Methods§

Source

fn cells_within_weight_threshold( &self, origin_cell: H3Cell, weight_threshold: W, ) -> Result<H3CellMap<W>, Error>

Find all cells connected to the graph within a given weight_threshold around the given origin_cell

Implementors§

Source§

impl<W, G> WithinWeightThreshold<W> for G
where G: GetCellEdges<EdgeWeightType = W>, W: Zero + Ord + Copy + Add,