KrysEWilliams / SimpleNetworkTopologies

Other
0 stars 0 forks source link

Decide code representation for network #1

Open pseastham opened 3 years ago

pseastham commented 3 years ago

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).