I have this code:
Ind = 10; StrategiesCop = {"1DD", "1CD", "2DD", "2DC"};Populations = UndirectedGraph[Flatten[Table[i -> j, {i, 2, Ind}, {j, i - 1}]],
VertexLabels -> Thread[Table[i, {i, 1, Ind}] ->
PadRight[StrategiesCop, Ind, StrategiesCop]]]
Then I want to make the list of EdgeWeight
with the next conditions:
The
EdgeWeight
between same labels isv+(1-v)f
wheref
is the frequency of label, in example :1DD-1DD -> v+(1-v)0.3
v
is a parametre that I can changeThe
EdgeWeight
between different labels is(1-v)
Can I make a adjacency matrix and then the lists of EdgeWeight
? o How can I do it?