graph2m {BiDAG} | R Documentation |
This function derives the adjacency matrix corresponding to a graph object
graph2m(g)
g |
graph, object of class |
a square matrix whose dimensions are the number of nodes in the graph g, where element
[i,j]
equals 1
if there is a directed edge from node i
to node j
in the graph g
,
and 0
otherwise
Asiagraph<-m2graph(Asiamat) Asia.adj<-graph2m(Asiagraph)