Skip to content

Main content

Directed Edge Reversal Record Tool

Reverse one directed edge while preserving its explicit edge identifier.

Loading tool…

Description

Require nonempty edgeId and endpoint IDs, retain edgeId, and swap sourceId with targetId.

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 edgeId and endpoint IDs, retain edgeId, and swap sourceId with targetId.

When to use this tool

Use Directed Edge Reversal Record when you need one graph-record component or necessary structural check.

How to use the tool and how it works

  1. Enter edgeId, sourceId, targetId. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read edgeId, sourceId, targetId. Use the output convention below.

Require nonempty edgeId and endpoint IDs, retain edgeId, and swap sourceId with targetId.1

Input fieldMeaning and unitsAccepted input
edgeIdEdge IdRequired. Text; maximum UTF-16 length 8192.
sourceIdIdentifier used to retain the supplied source context.Required. Text; maximum UTF-16 length 8192.
targetIdTarget IdRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
edgeIdEdge IdRequired. Text; maximum UTF-16 length 8192.
sourceIdIdentifier used to retain the supplied source context.Required. Text; maximum UTF-16 length 8192.
targetIdTarget IdRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "edgeId": "e7",
    "sourceId": "A",
    "targetId": "B"
  },
  "output": {
    "edgeId": "e7",
    "sourceId": "B",
    "targetId": "A"
  }
}

Limitations and assumptions

  • This reverses a returned record without mutating a graph, updating adjacency, checking edge uniqueness, or interpreting relation semantics.
  • 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

  1. Calculation and input contract: graph/directed-edge-reversal-record — tool.io

Similar or alternative tools