Question: Draw Graph in Cartesius when matrix and the position is given

Dear all,

How to draw graph when the matrix and the position is given in cartesius coordinate?
For example, I have this matrix and the following coordinate

Matrix(9, 9, [[0, 0, 1, 0, 1, 1, 1, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 0]])

#Coordinate
[40, 40], [22, 22], [36, 26], [21, 45], [45, 35], [55, 20], [55, 45], [26, 59], [55, 65]

For sure, we can use Graph package
GT := GraphTheory;
G := GT:-Graph(X);
GT:-DrawGraph(G):
How to assign the coordinate such that I get the result of drawing in cartesius ?

Thank you anyway

Please Wait...