Stack overflow in Spring & SFDP layouts
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- julia
- Domain
- data-visualization
Research direction
Start by reproducing the attached data with the NetworkLayout.sfdp and NetworkLayout.spring calls shown in the issue, including the partial-layout arguments. Trace where the StackOverflowError occurs and compare behavior for the directed and undirected graph variants; done means both layouts handle this input without overflowing the stack.
Written by the indexing model from the issue text.
Description
I have some somewhat-large graph data that I'm attempting to do partial layouts on, and I'm hitting StackOverflowErrors when I try. I'm attaching the data, and here's the code I'm using for layout:
using GraphIO.EdgeList, Graphs
using NetworkLayout
using GeometryBasics: Point
using JSON3
println("Loading data")
g = loadgraph("graph.e", EdgeListFormat())
pin = identity.(JSON3.read("pin.json"))
initialpos = identity.(JSON3.read("initialpos.json"))
println("Running layout")
# Both of the following fail
NetworkLayout.sfdp(g; pin, initialpos, iterations = 5)
NetworkLayout.spring(g; pin, initialpos, initialtemp = 3.940695496278636, iterations = 5)
Any thoughts? I did also try converting g to an undirected graph, but that doesn't seem to make any difference.
- 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 5/5 Over a week Newbie friendliness 32/100
JuliaGraphs/NetworkLayout.jl#63 · 1 comment ·
-
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