Suppose I have a 2D list of booleans such as:
[[False, True , False],
[True, False, False]]
Would it be possible to convert this into a graph such that all the adjacent values of the list are connected to each other? Adjacency meaning just another value either directly next to, above/under, or one diagonal space away from each other. I'm working on a problem that I think would be easier to accomplish with a graph but my input is a list and I was curious if there was a way of doing that?