How to build connected network nodes on a graph?

I have a node location in a 2d data file that is written by my program

x0 = 0.12 y0 = 0.22 x1 = 0.12 y2 = 0.22 ..... 18 records for 9 node locations 

I also have an adjacency matrix in the data file that is written by my program

 G00 = 1 G10 = 1 G70 = 0 ........81 records for 9 node locations 

Can you guys help me build these network nodes with connections to neighboring nodes?

Thanks for looking at this.

+4
source share
1 answer

One of the most common ways is to use Graphviz . You just need to convert the adjacency matrix into a Graphviz script , which is simple.

+6
source

Source: https://habr.com/ru/post/1401769/


All Articles