powered by
write.brainnet(g, node.color = c("none", "community", "lobe"), node.size = "constant", file.prefix = "")
The .edge file is the graph's associated adjacency matrix.