cytoscape / cytoscape.js

Graph theory (network) library for visualisation and analysis
https://js.cytoscape.org
MIT License
10.12k stars 1.64k forks source link

Feature request: Edge merging #811

Closed Fransooijs closed 9 years ago

Fransooijs commented 9 years ago

I would like to request a feature for the merging of edges, where two or more edges meet before arriving at the target node. I currently implement this by adding an extra node that is invisible (width and height of 0). However, it would be really neat if this was a built-in feature in cytoscape.js.

Example image: edge_merging

Example code: https://gist.github.com/Fransooijs/50ad067ee323a64df7de

maxkfranz commented 9 years ago

Issue : Events and app scope

Say I tap the edge by the arrow. Which edge gets the event? All of them? One of them? None of them?

chrtannus commented 9 years ago

Depends on https://github.com/cytoscape/cytoscape.js/issues/359

maxkfranz commented 9 years ago

I don't think this should be supported with separate edges, given the issues with semantics. Hyperedges should produce the same visual effect. Closing as duplicate of https://github.com/cytoscape/cytoscape.js/issues/959