21.11.2014 Views

CHAPTER 25 Weighted Graphs and Applications Objectives • To ...

CHAPTER 25 Weighted Graphs and Applications Objectives • To ...

CHAPTER 25 Weighted Graphs and Applications Objectives • To ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

81 vector edgeVector2;<br />

82 for (int i = 0; i < NUMBER_OF_EDGES2; i++)<br />

83 edgeVector2.push_back(<strong>Weighted</strong>Edge(edges2[i][0],<br />

84 edges2[i][1], edges2[i][2]));<br />

85<br />

86 <strong>Weighted</strong>Graph graph2(5, edgeVector2); // 5 vertices in<br />

graph2<br />

87 MST tree2 = graph2.getMinimumSpanningTree();<br />

88 cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!