|
From: | Ahmed Abdeen Hamed |
Subject: | Re: [igraph] testing if two nodes are connected |
Date: | Sat, 15 Feb 2014 00:19:51 -0500 |
> I am trying to test if two specific nodes in a graph have an edge:> […]
> I am thinking there might be a better message than what I am doing. Is there a method like is_connected(v1, v2)?It’s called are_connected(v1, v2).
Also, you could use get_eid(v1, v2, error=False), in which case you get a return value of -1 if there is no edge between v1 and v2.
T.
[Prev in Thread] | Current Thread | [Next in Thread] |