Skip to content

Bug: Edges with a target node equaling the source node should display as a loopback edge which can be selected #101

Open
@ajbogh

Description

@ajbogh

Describe the bug
When an edge's sourceNode and targetNode are the same, currently the edge is rendered as a point with an arrow hanging off it. This point is not selectable, so the edge cannot be deleted.

To Reproduce
Steps to reproduce the behavior:

  1. Using the data, create an edge that has the same source and target node.
  2. Attempt to delete it.

Expected behavior
The edge should be allowed to exist (although there should be no way to create one in react-digraph)

Instead of rendering the edge as a point, make it a line that exits the source node and then returns to the source node in a different position (exit at right, return at top). Provide enough space to allow the user to select the edge for deletion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions