|
From: | Andrew Conway |
Subject: | [igraph] Adding structure to empty graph |
Date: | Tue, 3 Nov 2009 10:12:51 -0500 |
I would like to write a function that takes some edges data and adds it to a given graph, which starts as an graph.empty(). The edge data would be added iteratively, and at each iteration the edges are represented as a vector of characters, e.g. c('actor1','actor2'). These actors may or may not exist in the graph already. I am having a hard time figuring out how to accomplish this in igraph. It seems that igraph wants to generate some fixed number of vertices for a graph, then add structure. Also, is it possible to add character vertices to graph objects, or does everything have to go through the V(g)$name attributions? Any advice is greatly appreciated. ___________________________________ Drew Conway Ph.D. Student Department of Politics, New York University @drewconway |
[Prev in Thread] | Current Thread | [Next in Thread] |