Attaching Labels to Edges
Do mesmo jeito que nós podemos rotular os vértices de um grafo, nós podemos anexar informações às arestas. Isso pode incluir:
- Nomes—por exemplo, "12th Avenue".
- Números (também chamados de "pesos")—como distâncias ou velocidades.
- Tipos—para indicar relacionamentos, como "amigo" ou "colega" ou "pai de".
- Direção—no exemplo anterior, relacionamentos como "amigo" e "colega" são bidirecionais, mas "pai de" só tem uma direção (a não ser, possivelmente, que você seja um personagem num romance de Robert A. Heinlein).

Uma rede social. Rápido, alguém me dê $50 milhões para investir!
Na verdade, a última observação sobre direcionalidade é tão importante que merece sua própria página.
- About This Site
- Git Makes More Sense When You Understand X
- Example 1: Kent Beck
- Example 2: Git for Ages 4 and Up
- Example 3: Homeomorphic Endofunctors
- Example 4: LSD and Chainsaws
- The Internet Talks Back!
- Graph Theory
- Seven Bridges of Königsberg
- Places To Go, and Ways to Get There
- Nodes and Edges
- Attaching Labels to Nodes
- Attaching Labels to Edges ←HEAD
- Directed Versus Undirected Graphs
- Reachability
- Graphs and Git
- Visualizing Your Git Repository
- References
- The Reference Reference
- Making Sense of the Display
- Garbage Collection
- Experimenting With Git
- References Make Commits Reachable
- My Humble Beginnings
- Branches as Savepoints
- Use Your Targeting Computer, Luke
- Testing Out Merges
- Rebase From the Ground Up
- Cherry-Picking Explained
- Using 'git cherry-pick' to Simulate 'git rebase'
- A Helpful Mnemonic for 'git rebase' Arguments
- The End