MCPcopy Create free account
hub / github.com/douchuan/algorithm / pre

Method pre

src/graph/directed/order.rs:22–24  ·  view source on GitHub ↗

Returns the vertices in preorder.

(&self)

Source from the content-addressed store, hash-verified

20impl DepthFirstOrders {
21 /// Returns the vertices in preorder.
22 pub fn pre(&self) -> Iter<'_, usize> {
23 self.pre_order.iter()
24 }
25
26 /// Returns the vertices in postorder
27 pub fn post(&self) -> Iter<'_, usize> {

Callers 1

checkMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected