[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] how do I get 'from' and 'to' of an edge?
From: |
Sam Steingold |
Subject: |
[igraph] how do I get 'from' and 'to' of an edge? |
Date: |
Wed, 21 Mar 2012 23:36:21 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
I have a graph in R:
Vertices: 2
Edges: 2
Directed: TRUE
Edges:
[0] '4f33629f41393d3d' -> '4f54f25aaf86e815'
[1] '4f33629f41393d3d' -> '4f33629f41393d3d'
How do I get the _set_ of sources (and destinations) of all edges?
I can get all edges as E(g), and individual edges as E(g)[0..1], but how
do I get the source and destination (from & to) of an edge?
"Vertex and edge sequences and iterators" doc mentions 'from' and 'to'
"special functions", but I cannot figure out how to use them.
Thanks!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://truepeace.org
http://pmw.org.il http://americancensorship.org http://iris.org.il
What was the best thing before sliced bread?
- [igraph] how do I get 'from' and 'to' of an edge?,
Sam Steingold <=