Thank you Chris It works good!
================================= Dr. Manuel J. Zetina-Rejón Interdisciplinary Center of Marine Sciences National Polytechnic Lab. of Dynamics & Management of Aquatic Ecosystems Av. Instituto Politénico Nacional S/N Col. Playa Palo de Sta. Rita La Paz, BCS, México CP 23096 Tel. +52 (612) 1234658 Ext. 82452 Fax. +52(612) 1225322 http://www.cicimar.ipn.mx REFERENCES http://scholar.google.com.mx/citations?user=Whcz9wUAAAAJ&hl=es ================================= El 18/06/2015, a las 10:48, Chris Watson escribió: > If you're using R, you can do something like this: (assuming "comm" is the > community membership vector) > > edges1 <- E(g)[which(comm == 1) %--% which(comm == 1)] > > That should give you only edges that connect vertices in community #1. You > can apply to all others in a loop, using *apply, etc. > > On Thu, Jun 18, 2015 at 12:04 PM, Manuel Zetina-Rejón <[email protected]> > wrote: > I'm stuck in how to index all edges between communities in order to sum > weight attribute per communitie to express in relation to total weight of > edges. > > Let me say I identified communities in a network, then I identify > memberships. I wonder how to index only edges in a community i order to sum > the weights of them. I've found this like the inverse of crossing() function. > > Any help? > > Thank you > > Manuel > ================================= > Dr. Manuel J. Zetina-Rejón > Interdisciplinary Center of Marine Sciences National Polytechnic > Lab. of Dynamics & Management of Aquatic Ecosystems > Av. Instituto Politénico Nacional S/N Col. Playa Palo de Sta. Rita La Paz, > BCS, México > CP 23096 > Tel. +52 (612) 1234658 Ext. 82452 > Fax. +52(612) 1225322 > http://www.cicimar.ipn.mx > > REFERENCES > http://scholar.google.com.mx/citations?user=Whcz9wUAAAAJ&hl=es > ================================= > > > _______________________________________________ > 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
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
