R/Igraph Display edge weights in an edge list?
问题 Is there any way to display edge weights when viewing the graph object as an edge list? I want to do something in the spirit of: get.edgelist(graph, attr='weight') so as to view the edge pairings with the weights listed alongside the nodes, but that seems not to be allowed. Only way I know how to view the weights is to view the network data as an adjacency matrix. Hoping that's not the only way. 回答1: Using the example in the help page for function get.edgelist in pkg:igraph: > cbind( get