powered by
Transforms an edge list as returned by community_graph into an adjacency matrix or adjlist.
adjlist
edg_to_adj(edg, weight = NULL, directed = FALSE, adjlist = FALSE)
character matrix with two columns containing the from and to nodes of the edges.
optional numeric vector specifiying the weights associated with each edge.
logical specifying whether edges should only be included for from-to or also fro to-from.
logical specifying whether to export the adjancy matrix as an adjlist as required by fluency.
a numeric n x n adjacency matrix with n being the number of unique entries in edg.
edg
# NOT RUN { # get fluency data data(animal_fluency) # edge list of fluency graph edge_list = threshold_graph(animal_fluency[1:3]) # transfrom to adjacency matrix edg_to_adj(edge_list) # }
Run the code above in your browser using DataLab