Struct h3ron_graph::graph::h3edge::H3EdgeGraph [−][src]
pub struct H3EdgeGraph<W: Send + Sync> {
pub edges: ThreadPartitionedMap<H3Edge, W>,
pub h3_resolution: u8,
}Fields
edges: ThreadPartitionedMap<H3Edge, W>h3_resolution: u8Implementations
This has to generate the node list first, so its rather expensive to call.
get all edges in the graph leading from this edge to neighbors
get all edges in the graph leading to this cell from its neighbors
pub fn add_edge_using_cells(
&mut self,
cell_from: H3Cell,
cell_to: H3Cell,
weight: W
) -> Result<(), Error>
pub fn add_edge_using_cells_bidirectional(
&mut self,
cell_from: H3Cell,
cell_to: H3Cell,
weight: W
) -> Result<(), Error>
cells which are valid targets to route to
This is a rather expensive operation as nodes are not stored anywhere and need to be extracted from the edges.
Trait Implementations
impl<W> CoveredArea for H3EdgeGraph<W> where
W: PartialOrd + PartialEq + Add + Copy + Send + Sync,
impl<W> CoveredArea for H3EdgeGraph<W> where
W: PartialOrd + PartialEq + Add + Copy + Send + Sync,
calculates a MultiPolygon of the area covered by a graph Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<W> From<PreparedH3EdgeGraph<W>> for H3EdgeGraph<W> where
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
impl<W> From<PreparedH3EdgeGraph<W>> for H3EdgeGraph<W> where
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
Performs the conversion.
impl<W> GetStats for H3EdgeGraph<W> where
W: Send + Sync + PartialEq + PartialOrd + Add + Copy,
impl<W> GetStats for H3EdgeGraph<W> where
W: Send + Sync + PartialEq + PartialOrd + Add + Copy,
Gets the index resolution (0-15)
impl<W> TryFrom<H3EdgeGraph<W>> for PreparedH3EdgeGraph<W> where
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
impl<W> TryFrom<H3EdgeGraph<W>> for PreparedH3EdgeGraph<W> where
W: PartialOrd + PartialEq + Add + Copy + Send + Ord + Zero + Sync,
Auto Trait Implementations
impl<W> RefUnwindSafe for H3EdgeGraph<W> where
W: RefUnwindSafe,
impl<W> Send for H3EdgeGraph<W>
impl<W> Sync for H3EdgeGraph<W>
impl<W> Unpin for H3EdgeGraph<W> where
W: Unpin,
impl<W> UnwindSafe for H3EdgeGraph<W> where
W: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more