liveBook · Manning

Weighted graph

As explained in Graph Algorithms for Data Science

A weighted network is a graph whose relationships carry numerical values representing strength, cost, frequency, or another quantity.

A weighted graph stores a numerical value on each relationship. The value can represent strength, traversal cost, frequency, or another quantity, allowing relationships to be compared rather than treated as equivalent. section 2.1.2

Interpret a weight according to the network’s purpose:

  • Prefer higher values when weights represent relationship strength, such as friendship. section 2.1.2
  • Prefer lower values when weights represent traversal cost, such as transportation distance or time. section 2.1.2
  • Use weighted variations of degree or PageRank when analyzing projected monopartite networks. section 6.0

Strength versus cost

A connection between Jane and Ingrid can carry a higher friendship weight than the connection between Ingrid and Mark. In a transportation network, the preferred path instead minimizes the total weighted cost. section 2.1.2

Figure 2.4 (A) represents an unweighted graph; (B) represents a weighted graph.
02-04

Compare an unweighted graph, where relationships have equal strength or cost, with a weighted graph, where numerical relationship values distinguish them. section 2.1.2

How Graph Algorithms for Data Science covers it

How deep it goes
Defines numerical relationship weights and explains when higher or lower values are preferred.
Examples
Uses friendship relationships, transportation networks, and projected retweet networks as examples of weighted analysis.
What you can do after
Evaluate whether relationship values should be maximized for strength or minimized for traversal cost.
How it connects
Connects unweighted graphs, shortest paths, transportation networks, monopartite projections, degree centrality, and PageRank.

Also explained in

Compare how 3 books explain weighted graph →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Algorithms for Data Science. The section links point to the parts of the book it draws on.