Trait omnitigs::hydrostructure::Hydrostructure
source · pub trait Hydrostructure<NodeIndex: Copy, EdgeIndex: Copy> {
Show 14 methods
// Required methods
fn is_node_r_plus(&self, node: NodeIndex) -> bool;
fn is_node_r_minus(&self, node: NodeIndex) -> bool;
fn is_edge_r_plus(&self, edge: EdgeIndex) -> bool;
fn is_edge_r_minus(&self, edge: EdgeIndex) -> bool;
fn is_bridge_like(&self) -> bool;
// Provided methods
fn is_avertible(&self) -> bool { ... }
fn is_node_river(&self, node: NodeIndex) -> bool { ... }
fn is_node_cloud(&self, node: NodeIndex) -> bool { ... }
fn is_node_sea(&self, node: NodeIndex) -> bool { ... }
fn is_node_vapor(&self, node: NodeIndex) -> bool { ... }
fn is_edge_river(&self, edge: EdgeIndex) -> bool { ... }
fn is_edge_cloud(&self, edge: EdgeIndex) -> bool { ... }
fn is_edge_sea(&self, edge: EdgeIndex) -> bool { ... }
fn is_edge_vapor(&self, edge: EdgeIndex) -> bool { ... }
}
Expand description
The hydrostructure of a walk W
as defined in the hydrostructure paper.
Required Methods§
sourcefn is_node_r_plus(&self, node: NodeIndex) -> bool
fn is_node_r_plus(&self, node: NodeIndex) -> bool
Returns true if the given node is in R⁺(W)
.
sourcefn is_node_r_minus(&self, node: NodeIndex) -> bool
fn is_node_r_minus(&self, node: NodeIndex) -> bool
Returns true if the given node is in R⁻(W)
.
sourcefn is_edge_r_plus(&self, edge: EdgeIndex) -> bool
fn is_edge_r_plus(&self, edge: EdgeIndex) -> bool
Returns true if the given edge is in R⁺(W)
.
sourcefn is_edge_r_minus(&self, edge: EdgeIndex) -> bool
fn is_edge_r_minus(&self, edge: EdgeIndex) -> bool
Returns true if the given edge is in R⁻(W)
.
sourcefn is_bridge_like(&self) -> bool
fn is_bridge_like(&self) -> bool
Returns true if W
is bridge-like.
Provided Methods§
sourcefn is_avertible(&self) -> bool
fn is_avertible(&self) -> bool
Returns true if W
is avertible.
sourcefn is_node_river(&self, node: NodeIndex) -> bool
fn is_node_river(&self, node: NodeIndex) -> bool
Returns true if the given node is in the river.
sourcefn is_node_cloud(&self, node: NodeIndex) -> bool
fn is_node_cloud(&self, node: NodeIndex) -> bool
Returns true if the given node is in the cloud.
sourcefn is_node_sea(&self, node: NodeIndex) -> bool
fn is_node_sea(&self, node: NodeIndex) -> bool
Returns true if the given node is in the sea.
sourcefn is_node_vapor(&self, node: NodeIndex) -> bool
fn is_node_vapor(&self, node: NodeIndex) -> bool
Returns true if the given node is in the vapor.
sourcefn is_edge_river(&self, edge: EdgeIndex) -> bool
fn is_edge_river(&self, edge: EdgeIndex) -> bool
Returns true if the given edge is in the river.
sourcefn is_edge_cloud(&self, edge: EdgeIndex) -> bool
fn is_edge_cloud(&self, edge: EdgeIndex) -> bool
Returns true if the given edge is in the cloud.
sourcefn is_edge_sea(&self, edge: EdgeIndex) -> bool
fn is_edge_sea(&self, edge: EdgeIndex) -> bool
Returns true if the given edge is in the sea.
sourcefn is_edge_vapor(&self, edge: EdgeIndex) -> bool
fn is_edge_vapor(&self, edge: EdgeIndex) -> bool
Returns true if the given edge is in the vapor.