dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
495 stars 44 forks source link

Self-Loops #40

Open athevapalan opened 2 years ago

athevapalan commented 2 years ago

Is there a way to visualize self-loops? Currently an edge, where source and target are the same, only goes out of the node but the end doesn't go back into the node, but rather ends somewhere besides the node without connecting to anything.

dash14 commented 2 years ago

Hi @athevapalan, Sorry for the late reply. Currently, self-loop edges are not supported. If it is to be supported, it will take a while to add it, as many accompanying functions such as drawing multiple lines, passing paths, and displaying labels will need to be considered and implemented. It may be a partial solution, but I will consider it.

violent-boomerang commented 2 years ago

Hello, self-loops is a feature I would like also to use. I am using nodes and edges to represent entities and relations. A self relation would mean having a self loop, the same entity is at both ends of the relation.

I think a good fit for self loops is also in state machines. Some inputs in a state machine do not change state: like this state machine or this

hellohanchen commented 2 years ago

I also run into the same use case, is there a work-around for this right now?

Schewns commented 2 years ago

would be a nice feature for sure =)