Skip to Content
Data Structures and Algorithms in Java, 2nd Edition
book

Data Structures and Algorithms in Java, 2nd Edition

by Robert Lafore
September 2017
Intermediate to advanced
800 pages
23h 19m
English
Sams
Content preview from Data Structures and Algorithms in Java, 2nd Edition

14. Weighted Graphs

In the preceding chapter we saw that a graph’s edges can have direction. In this chapter we’ll explore another edge feature: weight. For example, if vertices in a weighted graph represent cities, the weight of the edges might represent distances between the cities, or costs to fly between them, or the number of automobile trips made annually between them (a figure of interest to highway engineers).

When we include weight as a feature of a graph’s edges, some interesting and complex questions arise. What is the minimum spanning tree for a weighted graph? What is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Structures and Algorithms in Java, 6th Edition

Data Structures and Algorithms in Java, 6th Edition

Michael T. Goodrich, Roberto Tamassia

Publisher Resources

ISBN: 9780134849775