Drawing a graph and extracting structure using R

166 Views Asked by At

For a production planning software I need a specificly structured Excel input. Therefore, I was looking for a way to make it easy for non-tech people to generate such an input. To achieve that, I thought it might be easiest for users to draw their production network as graph and I could use the resulting graphml output to derive the necessary information and transform them to the format needed.

When looking for an appropriate and easy software I found yEd. To start with I generated a very simple network with 2 sites and 1 part being transfered and exported the graphml. When I try to read the graphml in R using igraph or casualeffect package the names are lost and I get a lot of warnings. For igraph the plot also looks incomplete.

What am I doing wrong? Should I use a different software or package? Any recommendations?

I hope my description is sufficient (that is my first post on stackoverflow)

Thank you a lot.

### 1st try
library(igraph)
net1<-read.graph("Graph test.graphml", format = "graphml")
plot(net1)
### 2nd try
library(causaleffect)
net2 <- parse.graphml("Graph test.graphml", use.names = TRUE)
plot(net2)

Link for Graph Test on yEd

Link for graphml file

0

There are 0 best solutions below