Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Subgraphs to be created from the UI #150

Open
powderluv opened this issue Sep 3, 2020 · 2 comments
Open

Allow Subgraphs to be created from the UI #150

powderluv opened this issue Sep 3, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@powderluv
Copy link

Can we please have a feature to select a few nodes and add them to a subgraph ?

@magjac
Copy link
Owner

magjac commented Sep 3, 2020

That's an interesting proposal. I've avoided subgraphs so far because they have no representation in the generated graph and there are many ways to describe a graph DOT source that gives the same generated graph.

It would be possible to create a new subgraph though and place the nodes in it. The question is then also if fully contained edges should be placed with them or not? Also, both the nodes and edges might already be part of other subgraphs. Should they stay there as well as in the new subgraph or should they be removed from the old subgraphs. I guess stay in order not to change possible attribute settings.

There's probably plenty of other cases to consider, but perhaps you have a simple solution already in mind?

@powderluv
Copy link
Author

I think the creating a new subgraph should suffice. Maybe it can create something like this:

image
credit: https://forum.graphviz.org/t/clusters-outline-geometry-attribute/313/2

And then if we can select edges and snap them to either other nodes or subgraphs we can provide a way to represent compound attributes.

Yeah if nodes are already part of a subgraph they can be a nested subgraph.

Essentially we take a good default for subgraphs (new subgraph, nest existing subgraphs, maintain relationship to nodes and not subgraphs) and then allow for editing in anyway the user wants.

@magjac magjac added the enhancement New feature or request label Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants