pub struct PreparedH3EdgeGraph<W> { /* private fields */ }
Expand description

A prepared graph which can be used with a few algorithms.

Consequent H3DirectedEdges without forks get extended by a LongEdge to allow skipping the individual H3DirectedEdge values for a more efficient graph traversal.

%3 c1 c1 c2 c2 c1->c2 c5 c5 c1->c5 c3 c3 c2->c3 c4 c4 c3->c4 c4->c5 c6 c6 c5->c6 c10 c10 c5->c10 c11 c11 c5->c11 c14 c14 c5->c14 c7 c7 c6->c7 c8 c8 c7->c8 c9 c9 c8->c9 c9->c10 c12 c12 c11->c12 c13 c13 c12->c13 c13->c14

%3 h3cell H3 cell uint64 h3edge Outgoing H3 edge direction n [..] uint64 uint64 h3cell:p->h3edge attributes_n Attributes implementation specific h3edge:p_n->attributes_n:p longedge_n In H3 Edge uint64 Out H3 Edge uint64 Contained Edges Compressed bitmap Contained Edge Sequence Compressed uint64 vector Aggregated attributes implementation specific h3edge:p_n->longedge_n:p

Implementations

count the number of edges in the graph

The returned tuple is (num_edges, num_long_edges)

iterate over all edges of the graph

iterate over all edges of the graph, while skipping simple H3DirectedEdge which are already covered in other LongEdge instances of the graph.

This function iterates the graph twice - the first time to collect all edges which are part of long-edges.

Trait Implementations

Return the bounding rectangle of a geometry Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

concave hull - this implementation leaves out invalid cells

calculates a MultiPolygon of the area covered by a graph Read more
Deserialize this value from the given Serde deserializer. Read more
Converts to this type from the input type.
get all edges and their values originating from cell cell
Gets the index resolution (0-15)
Serialize this value into the given Serde serializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

get an iterator over the closest corresponding nodes in the graph to the given cell. The iterator will return all nodes with the same, smallest k <= max_distance_k which are part of the graph. Read more
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Returns found paths, transformed by the path_map_fn and keyed by the origin cell. Read more
Returns found paths keyed by the origin cell. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Find all cells connected to the graph within a given weight_threshold around the given origin_cell Read more
Find all cells connected to the graph within a given weight_threshold around the given origin_cells. Read more