Skip to content

Can Link Type or Trees to have a cycle ? #1419

Answered by williaster
Jasminou asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Jasminou 👋 thanks for checking out visx. The @visx/hierarchy package largely depends on d3-hierarchy, and all of the hierarchical layouts available in d3 require a hierarchy structure where every node has a single parent.

I think what you're describing is more of a true network, not a tree/hierarchy. So @visx/network would likely be what you need ... however we haven't ported over any of the d3 network layouts (which are harder to get right in react) so it may not be useful for that case.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Jasminou
Comment options

@williaster
Comment options

Answer selected by Jasminou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants