added helpful comment
added support for weights for igraph predictions. also added new weight
function.