r - Visualizing graph/network with 3 layeres (tripartite) igraph -


there topic tripartite graphs in igraph, way use layout.sugiyama not me. impose order nodes. actually, visualize edge crossing tripartite graph. suppose have tripartite graph 3 nodes in each column. have 1 edge coming out each node. 6 edges be, example, (a->e, b->f, c->d, d-> h, e->g, f-> i). that:

              d         g                b         e         h       c         f         

how can using igraph? said, want see crossing edges. thank you.

for example, do:

library(igraph) coords <- matrix(c(rep(1:3, each = 3), rep(3:1, 3)),                   ncol = 2,                   dimnames = list(letters[1:9], c("x", "y"))) g <- graph.formula(a--e, b--f, c--d, d-- h, e--g, f--i) plot(g, layout = coords[v(g)$name, ]) 

enter image description here


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -