问题标签 [igraph]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - R的Igraph中坐标的另一个问题
过去,我在获取 tkplot here中绘制的网络图坐标方面得到了一些帮助。现在我又被难住了。
这是新会话的输出。
但是当我尝试这个时,我得到了错误:
我确定这是由于我对该主题缺乏了解,但我错过了什么?
提前致谢
python - pycairo "ImportError: DLL load failed: 找不到指定的模块。" 即使在安装 DLL 之后
我在这里遵循 pycairo 安装说明: http ://www.cs.rhul.ac.uk/home/tamas/development/igraph/tutorial/install.html 安装 pycairo 以与 igraph 一起使用。
但是,即使在按照说明运行安装程序并将所有 DLL 解压缩/复制到 site-packages cairo 目录之后,我仍然收到以下错误:
p>我在 Windows 7 下运行 python 2.6.6。
有任何想法吗?
r - Convert igraph object to a data frame in R
I'm working with the iGraph library and I need to run some statistical analysis on the network. I'm computing several variables using iGraph and then want to use those indicators as the dependent variable in a few regressions and the vertex attributes as the independent variables in the model.
So, I'm able to load the data, run the igraph analysis, but I'm having trouble turning the igraph object back into a data frame. I don't really need the edges to be preserved, just each vertex to be turned into an observation with the attributes serving as a column in each row.
I tried the following:
But it throws the following error:
Any help or pointers would be greatly appreciated.
r - 将马赛克图表示为树图
我想以树的形式可视化马赛克图。例如
现在我想要以树的形式表示这一点,其中第一个节点是性别,第二个节点是年龄,终端节点是幸存的人数。可能应该是http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=84之类的东西,而不是 p 给出计数的数量。party:::plot.BinaryTree
R中是否有一个函数可以做到这一点,或者我应该通过查看函数来自己编写它
r - 如何使用固定位置控制 igraph 绘图布局?
我正在尝试绘制一个类似于流程图的网络可视化。我与以下代码相当接近,但我有几个问题:
- 这是最好的 layout() 算法,还是我可以手动为每个节点分配一个位置>
- 我怎样才能确保这些节点不会在图中重叠(就像他们在这里所做的那样)?
- 我可以将一个节点指定为“锚点”或起点吗?即,我可以使“C”成为最顶部或最左侧的节点吗?
非常感谢!!
r - R中的网络模块化计算
网络模块化的方程式在其维基百科页面(和著名的书籍)中给出。我想看到它在一些代码中工作。我发现这可以使用与 R 一起使用的 igraph 的模块化库( The R Foundation for Statistical Computing)。
我想看看代码中用于计算模块性的下面的示例(或类似的示例)。该库给出了示例,但这并不是我真正想要的。
让我们有一组顶点 V = {1, 2, 3, 4, 5} 和边 E = {(1,5), (2,3), (2,4), (2,5) (3 ,5)} 形成一个无向图。
将这些顶点划分为两个社区:c1 = {2,3} 和 c2 = {1,4,5}。要计算的是这两个社区的模块化。
python - 如何从 Python 中的字典创建 igraph 对象
我正在使用字典来表示我的 Python 程序中的图形。我使用字典的键来表示顶点,使用值来表示每个顶点的相邻节点。字典目前看起来像这样:
有没有一种直接的方法可以 从此字典中创建一个新的igraph 对象?如果没有简单的方法,那么下一个最佳选择是什么?
r - R 的 igraph 包中的二分图
我正在尝试创建一个带有 R 的 igraph 包的二分图,但有一段时间的魔鬼。
谁能告诉我为什么会这样:
但这给了我一个错误:
r - R:绘制 igraph 时有选择地显示节点
如何绘制选择的 igraph 节点?
我有一个现有的图表,但它太复杂了。我希望能够“放大”节点的子集。
我能够删除边的子集,但我不知道如何“关闭”隔离节点。
使用网络包时, displayisolates=FALSE
参数做到这一点;它不显示这些孤立的节点。
布局算法也应该忽略“关闭”的边缘。
例如:
绘制 g2 时,我不想显示节点 0。
谢谢
r - R中igraph中的R倒数边
我正在使用 R 中的图形。我目前正在使用 igraph,我希望能够绘制图形的双向边“互易边”。到目前为止,我已经看到可以绘制“双向”图,但不能绘制倒数边,例如:E(1,3) 和 E(3,1) 可能表示为双向边<-->,但是相反,我想绘制两条平行边,一条指向另一条的相反方向|| . 在绘制“plot(rEG, recipEdges = "distinct")" 时,Rgraphviz 中存在一个选项,但我更喜欢 igraph 上的绘图。提前致谢。