[Top][All Lists]

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

Re: [igraph] read.graph query

From: Tamás Nepusz
Subject: Re: [igraph] read.graph query
Date: Fri, 21 Sep 2012 15:28:15 +0200

> When I write out and then read in a graph, it's average path length 
> changes - code and output below. Anyone know why this is happening?


Option #1) You have isolated vertices in your graph. These are lost when you 
save it into edge list format, therefore the average path length changes when 
you load the graph back.

Option #2) Your original graph is undirected and the graph becomes directed 
when you load it back (or vice versa). The edge list format does not store 
whether your graph is directed or not, hence you have to provide this 
information when you load a graph from the edge list format. This does not 
change the transitivity because edge directions are ignored when calculating 
the transitivity, but obviously it changes the average path length.


reply via email to

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