Hi, the same graph digraph G{ 2000->2001;2000->2002; 2001->2000;2001->2002; 2002->2000;2002->2001; } tested with exactly the same commands outputs different results on my machine:
graph-tool --load test.dot --vertex-histogram="in-degree|-" # vertex histogram (in-degree): 2.0 3
graph-tool --load test.dot --distance-histogram=-# distance histogram: 1.0 6
What machine / version of graph-tool are you using? Also, I think it would be better if you can continue the discussion on the mailing list. Cheers, Andrea
You wrote:
Dear Expert,
I got your email from the Graph-tool mail list. I'm a new user of graph-tool. I just met some questions that confused me a lot:
I got the file "test.dot" which is a three vertices directed full graph. Its content is like is: digraph G{ 2000->2001;2000->2002; 2001->2000;2001->2002; 2002->2000;2002->2001; }
Question 1:
When I input the command line like this to get in-degree:
$graph-tool --load test.dot --vertex-histogram="in-degree|-"
I got the output like this: 2.0 6
Could you tell me what are the meanings of the above two values?
Question 2:
When I input the command line like this to get distance: $graph-tool --load test.dot --distance-histogram=-
I got the output like this: 1.0 12
Could you tell me what are the meanings of the above two values?
Thank you very much.
Regards, Dan