I want to create a weighted random graph. The random graph is already created
g = BlockRandom[
RandomGraph[BernoulliGraphDistribution[4, 0.5], DirectedEdges -> True,
VertexLabels -> "Name"]]
but when I add EdgeWeight -> RandomReal[{-1, 1}, k]]
I don't get nothing, for any k
I have used
How can I get a RandomGraph
with weighted edges?
g
"know"k
? Also, check whether weights can be negative... $\endgroup$