[Top][All Lists]

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

[igraph] Detecting a single edge between nodes

From: Thomas Gorochowski
Subject: [igraph] Detecting a single edge between nodes
Date: Fri, 26 Jun 2009 10:17:04 +0100

Hi there,

I am trying to efficiently come up with a method to detect if there is a edge directly between two node v1, v2. At the moment I am using the following but was wondering what the most efficient method would be where I don't have to effectively remove the error handler.

igraph_integer_t eid;
if (igraph_get_eid(G, &eid, v1, v2, directed) != 0)
  return TRUE;
  return FALSE;

Many thanks,

T.E. Gorochowski
University of Bristol, Centre for Complexity Sciences (BCCS)
http://www.chofski.co.uk, address@hidden

reply via email to

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