igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] subgraph by passing list of nodes that grabs also nodes poi


From: Jose Quesada
Subject: Re: [igraph] subgraph by passing list of nodes that grabs also nodes pointing to that list
Date: Sat, 20 Jun 2009 11:39:42 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Gabor,



Gábor Csárdi wrote:
> Jose,
> 
> there are many ways to do this, perhaps the simplest is to use
> neighborhood() to collect the neighboring vertices and then call
> subgraph().
> 
> vv <- neighborhood(g, order=1, nodes=mynodes, mode="in")
> subgraph(g, unique(unlist(vv)))
> 

The problem with this solution is that it doesn't keep the edges.
Subgraph returns only the vertices. I cannot think of a case where I'd
need the vertices and not the edges.
Is there any way to do what subgraph does, but keeping the edges?

Thanks!


Best,
- -Jose

> Best,
> Gabor
> 
> On Wed, May 13, 2009 at 7:55 AM, Jose Quesada <address@hidden> wrote:
>> Hi igraph help,
>>
>> I have a large bipartite network. It's hard to see what's going on, so I
>> would want to do a sizeable, but manageable, subset. Something I can
>> plot. For this, I want the nodes I set, plus nodes pointing at them. Is
>> there any way to do this? I'm thinking about something like subgraph but
>> passing a list of nodes grabs also nodes pointing to that list.
>>
>> Is this possible? Thanks
>>
>>
>> Best,
>> -Jose
>>
>> --
>> Jose Quesada, PhD.
>> Max Planck Institute,
>> Center for Adaptive Behavior and Cognition -ABC-,
>> Lentzeallee 94, office 224, 14195 Berlin
>> http://www.josequesada.name/
>>
>>
>>
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/igraph-help
>>
> 
> 
> 

- --
Jose Quesada, PhD.
Max Planck Institute,
Center for Adaptive Behavior and Cognition -ABC-,
Lentzeallee 94, office 224, 14195 Berlin
http://www.josequesada.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJKPK5eAAoJEGMobUVGH+HKm04P/1B4oaOAND5zmEch7C5wS9Ci
dFZNRf+pmkYXxb9EASvzHuKynil+6YbW/8wO0mg9NNBBrL/8eeeOHH2SltzVZOAD
LbsgHtkvLGaFf5x2ruQ9xGCztozkuKBgkZdB5tYOc02MHHjd+s5IkPg247N5iGwQ
pkt7a9lH04QznTxG03X6Wltc6fd/Q5/IEzLvZbnluPFgKb/AGPP1zh93fUM8kD0c
gaVGrXiczbVUDW8uIU4kXH+F4kJyx3+xj5Mp9TJHqpTvpNUWg7WQpdpxz6qL85/K
wXRXTlneujI4CKkMtLWEeCvWP6i6aADmPvBNlcX8W5pbPbjIV6XF9C2syYDLNes3
FA/tM8NnaS5xHp4qdjjshkrb42OTLcZESSdZGx006/cm1jecNXaHeSRYG0vJfN+R
wO5DSlFgBd2Vi1FbSc/w4RgueQsgT+jKJT/Q68kRCSw0X/W1aBFvTFDZIKQIha/x
8ZJCLhVPXa4Pv+V1w3xb82OLUjBT6qy1P3vRVj4D40CIYwtu05G7B9iEgCmYXVaa
lB75Vs89Kg1McowdwZ1kLczZIJYBTz6uanBnr5fSfxCbjSgEr1R1lOgzgkSNPFji
yNrD6hCr22C5TylNbCABfJ+L1GHHR4wKT0EkCneRz+jGU7RQy1SJC1PuRvxsBTWH
ynRpixZu14xVvDcOQUbD
=BU44
-----END PGP SIGNATURE-----




reply via email to

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