Description Usage Arguments Value Author(s) Examples
grMAT
generates the associated adjacency matrix to a given graph.
1 | grMAT(agr)
|
agr |
A graph that can be a |
A matrix that consists 4 different integers as an ij-element: 0 for a missing edge between i and j, 1 for an arrow from i to j, 10 for a full line between i and j, and 100 for a bi-directed arrow between i and j. These numbers are added to be associated with multiple edges of different types. The matrix is symmetric w.r.t full lines and bi-directed arrows.
Kayvan Sadeghi
1 2 3 4 | ## Generating the adjacency matrix from a vector
exvec <-c ('b',1,2,'b',1,14,'a',9,8,'l',9,11,'a',10,8,
'a',11,2,'a',11,10,'a',12,1,'b',12,14,'a',13,10,'a',13,12)
grMAT(exvec)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.