briatte / briatte/ggnetwork

xend, yend not properly calculated with Kamada Kawai on tree structures

Open
#35 2 comments 0 reactions 1 assignee Claimed by @briatte View on GitHub
bug
Dominant language
HTML
Stars
154
Forks
29
PR merge metrics
No merged PRs in 30d

Description

I have a graph with a tree structure. Only Kamada Kawai reveals the rooted structure, but something seems to be preventing the nodes from connecting. In essence, the xend and yend properties are not being properly computed. I'm not sure if this is an issue with how I'm parameterizing the layout algorithm or styling the elements; however, the node placement looks good and it should be trivial for the algorithm to properly place the endpoint for edges. It isn't though, see below. This happens whether or not I provide edge weights to the layout algorithm

![image](https://user-images.githubusercontent.com/8717779/49691177-ea546400-faf9-11e8-925d-8e1e3239747c.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.