I have a series of digraphs containing the same nodes, but differing edges - a dynamic/temporal graph - and am stuck for ideas about how best to implement this (Matlab or Python preferably).
I would like to construct a digraph'esque structure whereby each node connects to itself over each time-step (A0 -> A1 -> etc), and also to any other edges at that time-step. For example, in a digraph with nodes {A, B}, at time t_0 the digraph is disconnected. At time t_1, there is an edge from A to B. I would like to create something along the lines of: A0 -> {A1, B1}. B0 -> {B1}. My problem is that I can't get the digraph function to store the node and the time-step. I don't want to use different nodes to represent different time-steps because it makes comparisons too difficult. I want to point to the 'same' node, but store an additional time variable that I can access when traversing my digraph using breadth first search, for example.
Here is a picture of what I hope to implement!
Any ideas?
Thanks for your help!