Feature request: layouts for weighted graphs
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 32/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- julia
- Domain
- data-visualization
Research direction
Read src/spring.jl around lines 95–102 and compare the linked qgraph implementation to understand how normalized edge weights might affect spring attraction. The requested scope is a weighted spring layout, but the design and validation criteria remain open, so confirm those before implementing.
Written by the indexing model from the issue text.
Description
If one has a weighted graph, would it make sense for the layout algorithm to account for the weights?
This is done in, for instance, the R package qgraph.
Perhaps I'm viewing this too simplistically, but I think that all that needs to be done is multiply by the weights at some point. For example, in the Spring layout, there is now
where, if I understand the code correctly, this line F_d = d / K - K^2 / d^2 could be changed to account for the weight of the edge. One option is to simply weigh the attraction by the (normalized) edge strength, which is I think what qgraph does (see https://github.com/cran/qgraph/blob/57d588ee05a554f9d1078914e05ce03662c610b2/src/layout_rcpp.cpp#L111).
Any thoughts? I'd be happy to open a draft PR for a single layout (e.g., spring).
- Dominant language
- Julia
- Stars
- 109
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaGraphs/NetworkLayout.jl
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaGraphs/NetworkLayout.jl#80 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaGraphs/NetworkLayout.jl#67 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaGraphs/NetworkLayout.jl#55 · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Enhancement: Directed Acyclic Graph LayoutMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
JuliaGraphs/NetworkLayout.jl#20 · 7 comments · 5 reactions ·
All issues in JuliaGraphs/NetworkLayout.jl
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
JuliaStats/LogExpFunctions.jl#134 · 2 comments ·
-
code bug PowerSystems 6.0
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Sienna-Platform/PowerSystems.jl#1849 ·
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FluxML/Metalhead.jl#407 ·
Maintainers usually reply within 1 day