Description
Return edgeExists when present is true and either zeroIsAbsent is false or weight is nonzero.
A graph has vertices, edges, and a convention for direction, loops, and repeated edges. A local condition such as an edge count or degree sum may be necessary for a structure without proving that the full graph has that structure.
Return edgeExists when present is true and either zeroIsAbsent is false or weight is nonzero.
When to use this tool
Use Adjacency Zero Vs Absent Policy when you need one graph-record component or necessary structural check.
How to use the tool and how it works
- Enter present, weight, zeroIsAbsent. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read edgeExists. Inspect edgeExists before interpreting the associated values.
Return edgeExists when present is true and either zeroIsAbsent is false or weight is nonzero.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| present | Present | Required. Boolean. |
| weight | Weight | Required. Finite number. |
| zeroIsAbsent | Zero Is Absent | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| edgeExists | Edge Exists | Required. Boolean. |
{
"input": {
"present": true,
"weight": 0,
"zeroIsAbsent": false
},
"output": {
"edgeExists": true
}
} Limitations and assumptions
- The policy is supplied and signed weights are allowed; an absent entry never becomes an edge and no graph data is inspected.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Validate the complete graph, including connectivity and edge conventions, before drawing a structural conclusion.
References
Similar or alternative tools
- List Adjacent Equality Mask
Return false at the first item and exact equality with the preceding item at every later position.
- JSON Array Hole Vs Null Label
Parse arrayJson as a JSON array and validate a nonnegative index.