dim=3 plotting non-edges
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- julia, plotly
调研方向
从 graphplot 入口点开始,使用 dim=3、curvature=0 以及显式的 x、y 和 z 位置复现所提供的 Julia 示例。检查为什么一个只有一条边的图似乎包含了额外的边,并比较直边路径与较慢的曲线路径;当绘制的边与图一致,且零曲率 3D 图的速度有明显提升时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I posted the following on discourse.julialang.org. I am hoping somebody can help me.
I am successfully interacting with a 3D graph created with LightGraphs, but plotly backend is rather slow when I have 2000 nodes and 10,000 edges. It might be slow because the curvature argument creates intermediate points on an edge modeled by a spline. However, there is no acceleration when curvature is zero, and yet, a straight line is sufficient. That is not reasonable. Also, when curvature is low, an edge could be modeled with a reduced number of intermediate nodes. So I created a graph with a single edge, and ran the following code (notice the x,y,z arguments to graphplot.
using LightGraphs
using GraphRecipes
import Plots
Plots.plotly()
function plotGraph()
graph = SimpleGraph(20, 1)
nb_nodes = nv(graph)
xx = rand(nb_nodes)
yy = rand(nb_nodes)
zz = rand(nb_nodes)
p = graphplot(graph, dim=3, curvature=0, x=xx, y=yy, z=zz)
end
p = plotGraph()
The graph has edges associated with it. How is that possible? It is as if the position matrices are being used to create edges.
I looked at the source code to graphplot and it is very complex because of the level of generality. It seems to me that the code could be refactored to be more efficient. For example, if not graph restructuring is needed and edges are straight, processing can be decreased substantially. I like the generality when it is needed, but really do not understand why a graph of 2000 nodes with 10000 edges needs a minute to display (if I am luck), in 3D when curvature =0. I would expect a factor 100 speedup. The timing has nothing to do with first-time execution of my function. It is the same for the 2nd and 3rd execution. Thank you.
Any ideas?
- 主要语言
- Julia
- 星标
- 213
- 派生
- 62
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaGraphs/GraphPlot.jl 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
JuliaGraphs/GraphPlot.jl#148 ·
-
难度 4/5 3-5 天 新手友好度 30/100
JuliaGraphs/GraphPlot.jl#204 ·
-
难度 2/5 1-3 小时 新手友好度 42/100
JuliaGraphs/GraphPlot.jl#199 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
JuliaGraphs/GraphPlot.jl#198 · 6 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
JuliaGraphs/GraphPlot.jl#197 · 1 条评论 ·
查看 JuliaGraphs/GraphPlot.jl 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
SciML/DataDrivenDiffEq.jl#694 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
JuliaLang/LinearAlgebra.jl#1834 ·
维护者通常 1 天内回复
-
`RawAcquisitionData(acqData)` writes the repetition into the `average` counter可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
MagneticResonanceImaging/MRIReco.jl#332 ·
维护者通常 1 天内回复
-
Docstrings show df:DataFrame and an undefined function is exported可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复