We need a representation in code for the network that will be dynamically generated by the user. The most obvious representation I can think of will be a numpy matrix (https://numpy.org/doc/stable/reference/generated/numpy.matrix.html) but I can believe there are better representations out there.
The matrix represents a graph by each row/column signifying the "node", and the entry inside the matrix represents the edge between nodes (1 for presence of an edge, 0 for no edge).
We need a representation in code for the network that will be dynamically generated by the user. The most obvious representation I can think of will be a numpy matrix (https://numpy.org/doc/stable/reference/generated/numpy.matrix.html) but I can believe there are better representations out there.
The matrix represents a graph by each row/column signifying the "node", and the entry inside the matrix represents the edge between nodes (1 for presence of an edge, 0 for no edge).