what are the functions which check if two vertices (specified by their name attribute) are connected by an edge (incoming or outgoing or both) or not?
in other words what are the name of the functions get_eid
and are_connected
of python
in igraph
in R
?
thank you in advance,
There is an are.connected()
function in R's igraph library
g <- graph.ring(10)
are.connected(g, 1, 2)
# [1] TRUE
are.connected(g, 2, 4)
# [1] FALSE
for a list functions in the package, you can try looking at help(package="igraph")
in the future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With