图形图
基于并受启发的图形布局和可视化算法。
该spring_layout和stressmajorize_layout功能是从副本的 。
还包装了其他布局算法。
gadfly.js是从复制而来
入门
从Julia REPL可以安装最新版本
Pkg.add("GraphPlot")
GraphPlot然后被加载
using GraphPlot
用法
空手道网络
using LightGraphs : smallgraph
g = smallgraph ( :karate )
gplot (g)
添加节点标签
using LightGraphs
nodelabel = 1 : nv (g)
gplot (g, nodelabel = nodelabel)
调整节点标签
gplot (g, nodelabel = nodelabel, nodelabeldist = 1.5 , node