Description
Hello all,
First I would like to thank you for the work being done on NetworkDynamics.jl. It looks very promising and potentially very useful!
I had a question on how to model heterogeneous networks. I hope this is the right place to ask it.
Specifically, suppose I have two types of vertices: type A and type B.
A vertex can be connected to either a vertex of the same type of the other type.
The network is described by a directed graph, and the connection is specified by the vertex from which it originates.
So essentially we have two types of edges: ones originating from type A vertices, and those originating from type B vertices.
Ideally I would like to do something of the lines of (in the ODE describing a vertex):
for e in e_d
if source_vertex == typeA
dv[1] += connection_A(v, e)
elseif source_vertex == typeB
dv[2] += connection_B(v, e)
end
end
but at the moment I have no idea how to achieve something like this.
Any help is appreciated!