Hi, Just assign the names from the old network to the new one:
V(new.graph)$name <- V(old.graph)$name -- T. ------------------------------------------------------ From: Qunawei Zhang [email protected] Reply: Help for igraph users [email protected] Date: 2 July 2014 at 15:50:19 To: Help for igraph users [email protected] Subject: [igraph] degree.sequence.game > Hello: > > I have a network and a list of genes that we are interested in. I need to > generate some random networks (keep the degree of those genes) and compare > characteristics of my genes in the original network and random network. > I used the degree.sequence.game to generate random networks and save the > random networks by write.graph. But the random networks are saved by ids. Is > it possible to save the random networks by node names as those in the > original network. > > Thanks > > Best > Quanwei > > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
