[graph-tool] problem building weighted graph