R: Modifying Graphs
问题 I posted a comment/reply to another stackoverflow post over here : R: Understanding Graph relating to graphs in R. If you create some data corresponding to movies and actors (in which movies can not be connected to other movies directly, and actors can not be connected to other actors directly), you write some R code to check if your graph is bipartite: library(igraph) film_data <- data.frame( "movie" = c("movie_1", "movie_1", "movie_1", "movie_2", "movie_2", "movie_2", "movie_3", "movie_3",