igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] vertex attribute in bipartite network


From: Sergei Kostiaev
Subject: [igraph] vertex attribute in bipartite network
Date: Sun, 3 Nov 2019 20:53:50 -0500

hello,

how to create igraph bipartite network that has vertex attribute?
i use this code 

links <- coalitions_data_2019_11_03

head(links)

library(igraph)

coal <- graph_from_data_frame(d=links, directed=FALSE)

V(coal)$type <- bipartite.mapping(coal)$type

to create bipartite network in igraph from the dataset attached
i need to set an attribute (supports variable) to vertex (organization variable)
i don't know how

-- 
Best regards,

Dr. Sergei Kostiaev

PhD Candidate
Edward J. Bloustein School of Planning and Public Policy;
Part-Time Lecturer
Political Science Department
Rutgers University;
U.S. cell +1(202)361-7672

Adjunct Senior Fellow
Institute of Scientific Information on Social Sciences
Russian Academy of Sciences
Russian cell +7(495)798-2575











Attachment: coalitions data 2019.11.03.csv
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]