igraph-help
[Top][All Lists]
Advanced

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

[igraph] What exactly does igraph_transitivity_undirected() compute for


From: Szabolcs Horvát
Subject: [igraph] What exactly does igraph_transitivity_undirected() compute for directed graphs?
Date: Mon, 7 Dec 2015 11:05:20 +0100

Hello,

What precisely does igraph_transitivity_undirected() compute for
directed graphs?

The C documentation states that

"Directed graphs are considered as undirected ones."

but this is not exactly the case.

With an example using the R interface (for simplicity),

> g<-make_graph(c(1,2, 2,1, 2,3, 3,1))
> transitivity(g,"local")
[1] 0.3333333 0.3333333 1.0000000

> transitivity(as.undirected(g),"local")
[1] 1 1 1

Can someone clarify what precisely is computed in the directed case?

Szabolcs



reply via email to

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