Plano ------- 19 ------- Mesquite
| |
54 42
| |
Arlington --- 33 --- 38 --- 41 --- Denton
| |
50 |
| |
Fort Worth ---------------
Can you turn this into a weighted graph?
I tried text so I’m expecting a weighted graph, I’m confused because I do not understand what is a weighted graph
If you are asking for help writing a program to do that, we need a lot more details. If not, you are on the wrong site. If you are looking for software, say so (but on a site where this is accepted). If you are looking for homework help, see Stack Overflow homework FAQ
Also, your graphic is confusing. Is “38” a node in the graph, like Arlington and Fort Worth etc, or does the path from Arlington to Denton have multiple weights? If so, are they additive, or what? Did you forget the weight between Denton and Fort Worth, or is it implicitly zero?