Home > Back-end >  How to use C language to write a function, input the pieces to the network, and the adjacency matrix
How to use C language to write a function, input the pieces to the network, and the adjacency matrix

Time:09-15


Who can help me to see?

CodePudding user response:

You first define a structure, structure contain fields such as distance, direction of nodes, then define a structure array

CodePudding user response:

With 1, 2, 3... On behalf of the nodes a, b, c...
Defines a two dimensional array d [N] [N], [I] have the edge of the d [j] is the value of the input side without the edge of the assignment 1 or 0 x7f
  • Related