central point dominance: filter not found error

Hi everybody,
I do not understand how to use the --central-point-dominance.
I have a small undirected graph (a chain) in a file grafo.dot

graph G {
1 [VERTEX_BETWEENNESS="0"];
2 [VERTEX_BETWEENNESS="0.285714"];
3 [VERTEX_BETWEENNESS="0.47619"];
4 [VERTEX_BETWEENNESS="0.571429"];
5 [VERTEX_BETWEENNESS="0.571429"];
6 [VERTEX_BETWEENNESS="0.47619"];
7 [VERTEX_BETWEENNESS="0.285714"];
8 [VERTEX_BETWEENNESS="0"];
1--2 [EDGE_BETWEENNESS="0.333333"];
2--3 [EDGE_BETWEENNESS="0.571429"];
3--4 [EDGE_BETWEENNESS="0.714286"];
4--5 [EDGE_BETWEENNESS="0.761905"];
5--6 [EDGE_BETWEENNESS="0.714286"];
6--7 [EDGE_BETWEENNESS="0.571429"];
7--8 [EDGE_BETWEENNESS="0.333333"];
}

The following command:

$graph-tool --undirected --load
grafo.dot --central-point-dominance="VERTEX_BETWEENNESS|-"

graph-tool error: graph filtering error: filter not found

$graph-tool --undirected --load grafo.dot --central-point-dominance

Usage: /usr/local/bin/graph-tool [options]

graph-tool: error: --central-point-dominance option requires an argument

$graph-tool --version:

graph-tool 1.1.2 (r111)

(configured with ./configure --disable-visibility)
$gcc -v

gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

$uname -r

2.6.20-16-386

Any suggestion?
Cheers,
Andrea

This is a bug in graph-tool. I'll fix it in the git repository shortly.
As a temporary workaround, you can simply run the command on a directed
graph, which will have the same result as the undirected, as such:

$ graph-tool --undirected --load grafo.dot --directed
--central-point-dominance="VERTEX_BETWEENNESS|-"
# central point dominance (VERTEX_BETWEENNESS):
0.272109428571

Thanks for pointing this out!

Cheers.

Thank you Tiago for this workaround (and for this software that is really
really nice).
Cheers,
Andrea

Thank you Tiago for this workaround (and for this software that is really
really nice).
Cheers,
Andrea

You're welcome. :slight_smile:

It may interest you to know the bug in question was just fixed in the
git repository. Please see: http://git.forked.de/?p=graph-tool

Cheers,
Tiago

Hi,

This is really a beginners question :slight_smile: sorry, but I haven't used version control before...

I've got graph-tool-1.1.2 installed on ubuntu 7.10 (compiles with no problems), but would like to upgrade to the latest development source code.

I've installed git and typed
git clone git://git.forked.de/graph-tool

git run without errors and I found a directory ./graph-tool/ with some, but not all, files needed to install.

What do I do next? I tried to replace the old graph-tool source files with the new ones and re-compile, but make failed, so I guess this is the wrong thing to do...

Many thanks,
Rui