D
D
dearname2015-09-20 09:14:04
Programming
dearname, 2015-09-20 09:14:04

Organizing an adjacency matrix to build a field diagram?

Good afternoon. I think about such a task. Graphically I'm trying to depict a subfield diagram. Naturally, connecting the points along the adjacency matrix, I will get something like this:
300f56af970d45dda1889f4d9fed8a4a.png
Now we need to optimize the adjacency matrix so that it does not connect, for example, 12 with 2, because 12 is already connected with 6, and 6 with 2.
How to optimize the adjacency matrix, someone has an algorithm in mind, I would be grateful.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question