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

Stratify With Fake Root #106

Closed
emeeks opened this issue Jan 16, 2018 · 2 comments
Closed

Stratify With Fake Root #106

emeeks opened this issue Jan 16, 2018 · 2 comments

Comments

@emeeks
Copy link

emeeks commented Jan 16, 2018

Is it possible for stratify to recognize when a network has multiple root nodes but is otherwise a hierarchical network? Say I send an edge list where the only hierarchical rules violation is that there are multiple roots, could stratify just return a fake root with children being all the valid roots stratify discovers?

@robokozo
Copy link

I had the same situation... I just manually created a 'fake' root node that had an appropriate parent id

@mbostock
Copy link
Member

This feels like a duplicate of #105. Having a loose version of d3.stratify would be fine on an opt-in basis. Currently the way to opt-in is to define the fake root explicitly, but you could submit a PR that allows this to be done automatically if configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants