Questions tagged [tidygraph]

Tidygraph provides a tidy framework in R for all things relational (networks/graphs, trees, etc.). It is often used alongside ggraph.

102 questions
0
votes
1 answer

How to get the "articulation edges" in igraph?

I am trying to identify the edges between articulation points using igraph (and tidygraph) and its function articulation_points. In other words, I'm looking for the edges in my graph which if cut would split the graph in two. My first guess was that…
wdkrnls
  • 4,548
  • 7
  • 36
  • 64
0
votes
1 answer

about how to put weight as distance in network analysis using tidygraph

I just performed a code to get a consistent graph using igraph and tidygraph. In my example, the weight between A and C is just one. So the network graph from igraph package appropriately reflect weight as distance. However,I think tidygraph failed…
user224050
  • 317
  • 3
  • 10
0
votes
0 answers

Color a single node with tidygraph and ggraph

I have a tidy_igraph data network that I plot out. I want to however color a single node in the graph a distinct color from all others as it is the central point in the graph. I did the following to make a tibble with a color column: attending <-…
MCP_infiltrator
  • 3,961
  • 10
  • 45
  • 82
0
votes
1 answer

How to fix "function should not be called directly" error in tidygraph?

The problem is when I try to apply a dplyr::mutate function in order to get some measures of centrality to a List of network graphs, iterating thorugh them. I am working with tidygraph. If I subsett one of the networks of the list, the code works…
0
votes
1 answer

Undirected network graph calculated by tidygraph shows more degree centrality than should be possible

I have a cleaned data set with 26 nodes. I am placing these 26 nodes in an undirected network graph using tidygraph, where I use the centrality_degree() function to calculate the centrality degree. However, when I graph the resulting network, my…
kneijenhuijs
  • 1,189
  • 1
  • 12
  • 21
0
votes
1 answer

understanding a simple network chart

Consider this simple example mynodes_alt <- tibble(id = c(1,2,4,5), mygroup = c(2,2,3,3)) myedges_alt <- tibble(from = c(1,1,4), to = c(4,2,3), power = c(3,3,3)) tbl_graph(nodes = mynodes_alt,…
ℕʘʘḆḽḘ
  • 18,566
  • 34
  • 128
  • 235
0
votes
0 answers

tbl_graph function failed

I applied igraph to visualizing a network on a discussion forum. rt_net <- tbl_graph(nodes = nodes, edges = edges, directed = TRUE) Error in (function (edges, n = max(edges), directed = TRUE) : At type_indexededgelist.c:117 : cannot create…
Ellie YANG
  • 11
  • 3
0
votes
1 answer

How to apply mapping functions using furrr on tidygraph objects?

The parallel calculations on tidygraph centrality functions using furrr is throwing an error: "Error in mutate_impl(.data, dots) : Evaluation error: This function should not be called directly." Here is my…
Geet
  • 2,515
  • 2
  • 19
  • 42
0
votes
2 answers

Computing the Everett-Valente Brokerage Score in TidyGraph

I want to compute the Everett-Valente Brokerage Score for each node in my directed network (Everett and Valente 2016). This score is based on betweenness centrality. Essentially, this controls for network size. The ability of a broker to control…
aterhorst
  • 625
  • 4
  • 14
0
votes
1 answer

Filter directed co-occurrences in a table

I have co-occurrence data that can be represented in two columns. The entries in each column are from the same set of possibilities. Ultimately I am aiming to plot a directed network but first I would like to split the table into those that…
G_T
  • 1,555
  • 1
  • 18
  • 34
0
votes
1 answer

r tidygraph find first parent in hierarchy that meets criteria

Find the first approver within the reporting line which is a minimum of 2 grades higher. Eg grade 0 is two grades higher than grade 2. Employee Graph I'm trying to create a new node attribute Approver which should populate for Employees H,E,F,G…
Jonathan
  • 569
  • 4
  • 6
0
votes
1 answer

How to use as_tbl_graph() with group_by()?

this is a follow-up question to a recent issue on calculating graph depth I encountered. This involves tidyverse and tidygraph. After reading into tidygraph I felt I'd give it a proper try but I encountered a new problem in my workflow. When working…
Paavo Pohndorff
  • 323
  • 1
  • 2
  • 17
1 2 3 4 5 6
7