View source: R/complex_matrices.R
as_incidence_complex | R Documentation |
The complex incidence matrix of a signed graph containing ambivalent ties.
as_incidence_complex(g, attr)
g |
igraph object. |
attr |
edge attribute name that encodes positive ("P"), negative ("N") and ambivalent ("A") ties. |
This function is slightly different than as_incidence_matrix since it is defined for bipartite graphs.
The incidence matrix here is defined as a S \in C^{n,m}
, where n is the number of vertices and m the number of edges. Edges (i,j) are oriented such that i<j and entries are defined as
S_{i(i,j)}=\sqrt{A_{ij}}
S_{j(i,j)}=-\sqrt{A_{ji}} if (i,j) is an ambivalent tie
S_{j(i,j)}=-A_{ji}\sqrt{A_{ji}} else
a complex matrix
David Schoch
laplacian_matrix_complex,as_adj_complex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.