Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mistake in example network graph #48

Open
valeriabonapersona opened this issue May 7, 2020 · 0 comments
Open

mistake in example network graph #48

valeriabonapersona opened this issue May 7, 2020 · 0 comments

Comments

@valeriabonapersona
Copy link

Hi! I run the network graph example, but it did not work for me. I fixed it by changing the code in the "create edges" section as

edge_shapes <- list()
for(i in 1:Ne) {

v0 <- es[i,]$V1
v1 <- es[i,]$V2

v0_index <- which(V(G)$name == v0)
v1_index <- which(V(G)$name == v1)

edge_shape = list(
type = "line",
line = list(color = "#030303", width = 0.3),
x0 = Xn[v0_index],
y0 = Yn[v0_index],
x1 = Xn[v1_index],
y1 = Yn[v1_index]
)

edge_shapes[[i]] <- edge_shape
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant