Description Usage Arguments Value Examples
Transforms an edge list as returned by community_graph into an
adjacency matrix or adjlist
.
1  edg_to_adj(edg, weight = NULL, directed = FALSE, adjlist = FALSE)

edg 
character matrix with two columns containing the from and to nodes of the edges. 
weight 
optional numeric vector specifiying the weights associated with each edge. 
directed 
logical specifying whether edges should only be included for fromto or also fro tofrom. 
adjlist 
logical specifying whether to export the adjancy matrix as an

a numeric n x n adjacency matrix with n being the number of unique
entries in edg
.
1 2 3 4 5 6 7 8  # 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)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.