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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

vector neighbors;<br />

neighbors[0].push_back(<strong>Weighted</strong>Edge(0, 2, 3.5));<br />

neighbors[0].push_back(<strong>Weighted</strong>Edge(0, 6, 6.5));<br />

neighbors[0].push_back(<strong>Weighted</strong>Edge(0, 7, 1.5));<br />

neighbors[1].push_back(<strong>Weighted</strong>Edge(1, 0, 3.5));<br />

neighbors[1].push_back(<strong>Weighted</strong>Edge(1, 5, 8.5));<br />

neighbors[1].push_back(<strong>Weighted</strong>Edge(1, 8, 19.5));<br />

cout

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

Saved successfully!

Ooh no, something went wrong!