Description
Require nonempty sourceId and targetId and return their exact equality as selfLoop.
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.
Require nonempty sourceId and targetId and return their exact equality as selfLoop.
When to use this tool
Use Edge Loop Endpoint Check when you need one graph-record component or necessary structural check.
How to use the tool and how it works
- Enter sourceId, targetId. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read selfLoop. Inspect selfLoop before interpreting the associated values.
Require nonempty sourceId and targetId and return their exact equality as selfLoop.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| sourceId | Identifier used to retain the supplied source context. | Required. Text; maximum UTF-16 length 8192. |
| targetId | Target Id | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| selfLoop | Self Loop | Required. Boolean. |
{
"input": {
"sourceId": "node-A",
"targetId": "node-A"
},
"output": {
"selfLoop": true
}
} Limitations and assumptions
- This flags one endpoint pair without deciding whether loops are allowed, resolving aliases, or inspecting an entire graph.
- 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.
Alternative or Complementary methods
Validate the complete graph, including connectivity and edge conventions, before drawing a structural conclusion.
References
Similar or alternative tools
- Directed Edge Reversal Record
Require nonempty edgeId and endpoint IDs, retain edgeId, and swap sourceId with targetId.
- Adjacency Zero Vs Absent Policy
Return edgeExists when present is true and either zeroIsAbsent is false or weight is nonzero.