Skip to content
#

agent-based-framework

Here are 21 public repositories matching this topic...

pitmonticone
pitmonticone commented Sep 12, 2020
g = model.space.graph

weight_matrix = LightGraphs.weights(g)
for i in 1:nv(g)
	weight_matrix[i,i] = 0
end

edgewidthsdict = Dict()
for node in 1:nv(g)
	nbs = neighbors(g,node)
	for nb in nbs
		edgewidthsdict[(node,nb)] = weight_matrix[node,nb] / sum([outneighbor for outneighbor in weight_matrix[node,:]])
	end
end

edgewidthsf(s,d,w) = edgewidthsdict[(s,d)]*5

plotargs =

Improve this page

Add a description, image, and links to the agent-based-framework topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the agent-based-framework topic, visit your repo's landing page and select "manage topics."

Learn more