pub enum GraphAnalysisError {
UnknownNode {
node: GraphNodeId,
},
NodeLimitExceeded {
count: u32,
limit: u32,
},
SelectedEdgeLimitExceeded {
count: u32,
limit: u32,
},
DepthLimitExceeded {
requested: u32,
limit: u32,
},
BetweennessWorkLimitExceeded {
required: u64,
limit: u64,
},
BetweennessWorkOverflow,
ConsumedGraphInvariant {
node: GraphNodeId,
},
}Expand description
A refusal taken while building or querying one analysis.
Variants§
UnknownNode
A query named a node this graph holds no record for.
Fields
node: GraphNodeIdThe identity that named nothing.
NodeLimitExceeded
The graph states more nodes than the stated ceiling admits.
SelectedEdgeLimitExceeded
The selection admits more edges than the stated ceiling allows.
DepthLimitExceeded
A query asked to walk further than the stated ceiling allows.
BetweennessWorkLimitExceeded
Betweenness over this selection costs more than the stated ceiling.
Fields
BetweennessWorkOverflow
The betweenness work bound does not fit the width it is counted in.
ConsumedGraphInvariant
Partition derivation observed a node no container owns.
Graph construction proves every node is reachable from one container root, and no public constructor can state a graph that is not, so this is the exhaustiveness branch of a guarantee rather than a reachable refusal.
Fields
node: GraphNodeIdThe node no container ancestor answers for.
Trait Implementations§
Source§impl Debug for GraphAnalysisError
impl Debug for GraphAnalysisError
Source§impl Display for GraphAnalysisError
impl Display for GraphAnalysisError
Source§impl Error for GraphAnalysisError
impl Error for GraphAnalysisError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()