[graph-tool] Use of edge's weights in model inference