Hi,
I'm thinking to re-install the graph-tool. I've downloaded the precompiled files but don't know how to install them. can anyone tell me how?
thanks!
Dan

On 09/28/2007 11:34 PM, Rui Carvalho wrote:
> I'm trying to run graph-tool from a matlab (Matlab2007a) under ubuntu 7, but
> I'm running into problems.
>
> I've added /usr/local/bin to the matlab path, but keep getting the same
> error -see attached. To run an unix command from matlab you type
>>> unix(cmd)
>
> Where cmd is, e.g. 'ls'. This works fine, but when cmd='graph-tool' I get
> the attached error.
>
> Has anyone tried this before?
>
I don't have matlab installed, but I can run it from octave just fine:
octave:1> unix('./graph-tool --version')
graph-tool 1.2.0devel (commit 57d3cff82dcfd91646abedb7627cbdcb353eae97)
Written by Tiago de Paula Peixoto <tiago(a)forked.de>
Copyright (C) 2007 Tiago de Paula Peixoto
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ans = 0
The error message you got seems to be related to python itself, more
specifically to the gzip python module. Can you run other python
programs from matlab? Can you also run graph-tool from octave, as above?
Cheers,
Tiago
--
Tiago de Paula Peixoto <tiago(a)forked.de>
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Hi,
I want to know the shortest distances from any single vertex to any other vertices, and the largest one out of them (I call it the maximum diameter of a graph). How can I do that?
Thanks!
Dan

Hi,
I'm trying to run graph-tool from a matlab (Matlab2007a) under ubuntu 7, but
I'm running into problems.
I've added /usr/local/bin to the matlab path, but keep getting the same
error -see attached. To run an unix command from matlab you type
>> unix(cmd)
Where cmd is, e.g. 'ls'. This works fine, but when cmd='graph-tool' I get
the attached error.
Has anyone tried this before?
Many thanks,
Rui

On 09/27/2007 11:01 AM, Xiaodan Liu wrote:
> 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:
Thanks for using graph-tool, and we're happy to answer any question you
may have, but please use the mailing list, and do not email people
individually like that. The mailing list exists exactly for this purpose...
> 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?
The fist column is the in-degree and the second is the number of
vertices, which is quite strange since your graph has 3 vertices, not 6.
I tested this command with your graph with the current development
version of graph-tool and got the same result as Andrea Perna:
$ graph-tool --load foo2.dot --vertex-histogram="in-degree|-"
# vertex histogram (in-degree):
2.0 3
>
> 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?
It says there are 12 distances of size 1 in the graph, which is false,
since it should be 3 x (3-1) = 6. Are you sure you loaded the same graph
you sent in your email? If yes, please tell us which version of the
program, which compiler version, and which platform you are using.
Cheers,
Tiago
--
Tiago de Paula Peixoto <tiago(a)forked.de>
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

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