>
> Do I do something wrong?
>
Yes; the argument of subgraph() is the IDs of the nodes to be included in
the subgraph. Neighbors are not included. You need
g.subgraph(g.neighborhood(5)) instead.

T.
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to