Hello(adsbygoogle = window.adsbygoogle || []).push({});

I imported a 30 X 30 matrix into Mathematica. I made a graph out of this and then found the minimum spanning tree. Next, I printed off a list of the edges. I included the edgeweight option to get the associated weights listed next to each edge. My goal was to ultimately sum these weights.

The problem is, it returns 1 for every edgeweight of the minimum spanning tree. When I print the edgeweights for the graph from which the minimum spanning tree was made, the correct edgeweights are returned.

Any ideas what I'm doing wrong?

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica, Matrices and Graph Theory

Loading...

Similar Threads - Mathematica Matrices Graph | Date |
---|---|

Mathematica 8.0 - Generating List of Powers of Matrices/Graphs | Nov 9, 2012 |

Tables/Matrices in Mathematica | Jun 6, 2011 |

Solving simultaneous equations with big matrices using Mathematica 7 | Jun 4, 2011 |

Help me to solve Do-loop for large matrices (Mathematica) | May 4, 2011 |

Defining function of a vector and symbolic symmetric matrices- mathematica | Feb 9, 2011 |

**Physics Forums - The Fusion of Science and Community**