Use getEdgeProbability() instead of getEdgeWeight() in BFI and remove getEdgeWeight...