[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;
igraph_set_error_handler(igraph_error_handler_ignore);
if (igraph_get_eid(G, &eid, v1, v2, directed) != 0)
return TRUE;
else
return FALSE;
Many thanks,
Tom
--
T.E. Gorochowski
University of Bristol, Centre for Complexity Sciences (BCCS)
http://www.chofski.co.uk, address@hidden
- [igraph] Detecting a single edge between nodes,
Thomas Gorochowski <=