question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overlapping compound nodes

See original GitHub issue

Issue type

Feature request

Environment info

  • Cytoscape.js version :
  • Browser/Node.js & version :

Description of new feature

I would like to have nodes with multiple parents, i.e., intersecting compound nodes.

Motivation for new feature

I am creating a graph editor for bayesian nets (template notations) in cytoscape.js. In the template notation sometimes I need to have a node with two parents. Like the graph in the picture. image

The picture is taken from: https://github.com/jluttine/tikz-bayesnet

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
ghamariancommented, Feb 13, 2019

cytoscape_intersecting

I think the change I suggested cannot be done with an extension as it required a change to the data structure, i.e. parent. This was about 10 lines of code change in total. But if that’s your decision not to support it, then so be it. Thanks for the nice library btw.

And here is the commit of changes: https://github.com/ghamarian/newcyto/commit/202644f2ecf07e58997db8e1ad800211ad5bf10c

0reactions
maxkfranzcommented, Sep 17, 2021

Take a look at https://github.com/upsetjs/cytoscape.js-bubblesets. @sgratzl may be interested in collaboration.

The main paper I’m aware of on this topic is Bubble Clusters: An Interface for Manipulating Spatial Aggregation of Graphical Objects by Watanabe et al.

https://www-ui.is.s.u-tokyo.ac.jp/~takeo/research/bubble/index.html

The video on the U Tokyo website is very compelling

(N.b. using a compound-like node (rectangles) for sets may not be the best idea – consider layout and visual overlap.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overlapping compound nodes · Issue #48 - GitHub
I am working with graphs where we group nodes into compound nodes, and only inner components have edges. when we fix one node's...
Read more >
Avoid overlapping compound nodes - cytoscape.js
We use cose-bilkent, but is not technically an overlap (I think). The compound node looks like has more nodes than it should.
Read more >
Avoid Overlapping Compound Nodes - ADocLib
Determines if and how node overlaps should be removed. Nodes are first enlarged using the sep attribute. If true overlaps are retained. If...
Read more >
Is there any layout to avoid node overlap (like gephi has ...
I'd try different layouts, as they all bring out different structure, and many have the side effect of not overlapping reasonably sized nodes....
Read more >
overlap - Graphviz
Nodes are first enlarged using the sep attribute. If true , overlaps are retained. If the value is "scale" , overlaps are removed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found