igraph Questions
3
Solved
I have this graph network in R:
library(igraph)
n_rows <- 10
n_cols <- 5
g <- make_lattice(dimvector = c(n_cols, n_rows))
layout <- layout_on_grid(g, width = n_cols)
n_nodes <- vco...
1
Solved
This is a follow-up question from my previous question Assign Random Colors in R
(After much trial and error) I wrote this function which randomly colors some nodes on a network and colors 3 of the...
7
Solved
I have been stuck with computing efficiently the number of classmates for each student from a course-level database.
Consider this data.frame, where each row represents a course that a student has ...
Lockyer asked 9/7, 2024 at 16:49
3
I am trying to learn few basic functions in Igraph- But, I am having problems computing the degrees from a gragph: see example below (I copied the following example from this site):
Example of dat...
2
Solved
My question follows the one here, about how to change the vertex frame width in igraph.
With updates in igraph, the proposed solution seems not to work anymore. Does anybody have a solution (or m...
Mahayana asked 28/8, 2013 at 9:14
1
When plotting a graph using igraph package, how to rotate the vertex label in the plot, for example, by pi/4?
library(igraph)
g = graph.ring(5)
V(g)$name = paste(LETTERS[1:5], 'rotate_45')
plot.ig...
5
Solved
Background
Assuming we have a family of matrices Ms of size n-by-n, which should meet the following requirements:
Entries of the matrix are either 0 or 1, i.e., boolean, but diagonal entries are a...
Skimmia asked 13/8, 2023 at 22:37
3
Solved
I am using Igraph package in R and when I am accessing the list of vertices names through V(graph), I am getting the following result:
Vertex sequence:
[1] "d66cp96igcdnt25brjeics9d11" "bovlonq25...
6
Solved
I have a large dataset with sites that were sampled irregularly over 40 years. I want to select the maximum number of sites that share, let’s say, at least 5 years of data.
Any pointers would be ap...
Hainaut asked 21/7, 2023 at 12:55
3
Solved
I have the following network:
g <- graph(c("Amy", "Ram",
"Ram", "Li",
"Li", "Amy",
"Amy", "Li",
"Kate", "Li"), directed=TRUE)
and would like to understand how Closeness centrality in this...
0
Not a question but a contribution.
Having used igraph for a few years, I have not yet come across a summary table indicating which community-detection algorithm is best for which network configurat...
Novelty asked 27/5, 2023 at 0:43
3
My general problem is that I loose the vertex names / labels (not sure about the right word here) when generating a graph using iGraph.
I have an edge list IC_edge_sub of a bipartite network, tha...
4
Solved
I am using igraph for plotting a graph in R doing something like plot(mygraph, vertex.color = "green").
Is there a way to change the color and/or width of the vertices' borders?
2
I wanted to visualize a network with the data I have and would like to graph them with specific edge lengths. I use Python, and I've tried networkx and igraph to plot but all seem to assign fixed e...
3
Solved
I have changed my computer to a Linux Mint x64 OS and I have throubles with a python library, igraph library, when i try to execute and old program I made.
DeprecationWarning: To avoid name col...
Exhilaration asked 24/3, 2016 at 12:53
4
Solved
I have the following tibble,
contact <- tribble(
~name, ~phone, ~email,
'John', 123, '[email protected]',
'John', 456, '[email protected]',
'John', 456, '[email protecte...
2
Solved
In R, I have a weighted undirected graph as an igraph object :
IGRAPH e7a8fac UNW- 306 2829 --
+ attr: name (v/c), label (v/c), nom (v/c), sigle (v/c), statut (v/c), champ (v/c), cp (v/c), info (...
5
Solved
Recently I've been working with python-igraph package and all my code is based on graphs I create using igraph. Right now, I need to calculate some measures for my graph which apparently are implem...
Gratulate asked 21/4, 2015 at 21:52
1
0
I am working with the R programming language.
Suppose there are 100 people - each person is denoted with an ID from 1:100. Each person can be friends with other people. The dataset can be represent...
Sylvanus asked 29/12, 2022 at 2:59
3
I am trying to draw a network visualization to resemble a flow diagram. I'm fairly close with the following code, but I have a couple questions:
Is this the best layout() algorithm, or can I manu...
1
Solved
I simulated some data and created a graph network in R using visnetwork:
library(igraph)
library(dplyr)
library(visNetwork)
#create file from which to sample from
x5 <- sample(1:100, 1100, repl...
Pelion asked 3/11, 2020 at 1:38
2
Solved
I started evaluating igraph library and its functionality.
I need to calculate hamiltonian path of a graph generated by igraph_de_bruijn() function.
Is there any ready made function in igraph libra...
Gusto asked 24/10, 2014 at 23:6
1
Solved
I am working with the R programming language.
I generated the following random data set in R and made a plot of these points:
library(ggplot2)
set.seed(123)
x_cor = rnorm(5,100,100)
y_cor =...
Scammony asked 15/3, 2022 at 16:40
2
Solved
I made the following 25 network graphs (all of these graphs are copies for simplicity - in reality, they will all be different):
library(tidyverse)
library(igraph)
set.seed(123)
n=15
data = data....
Homothermal asked 23/2, 2022 at 22:42
1 Next >
© 2022 - 2025 — McMap. All rights reserved.