title: How do I find the edges of a vertex using igraph and R?
body: <p>Say I have this example graph, i want to find the edges connected to vertex 'a'</p>
  
  <pre><code> d &lt;- data.frame(p1=c('a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'd'),
                   p2=c('b', 'c', 'd', 'c', 'd', 'e', 'd', 'e', 'e'))
  
  library(igraph)
  g &lt;- graph.data.frame(d, directed=FALSE)
  print(g, e=TRUE, v=TRUE)
  </code></pre>
  
  <p>I can easily find a vertex:</p>
  
  <pre><code> V(g)[V(g)$name == 'a' ]
  </code></pre>
  
  <p>But i need to reference all the edges connected to the vertex 'a'.</p>