MatchAnalysis Part 3 — PassGraph

In this part you will build the actual graph that keeps track of passes between players and performs simple analyses.
We use an adjacency list representation: for each sender (player) we store a list of outgoing Pass objects.


Background

A graph consists of nodes and edges.
In our application, a node is a player and an edge is a pass between two players.

We use an adjacency list representation:


Goal

Implement a class PassGraph that allows you to:


Given

From Part 1 and Part 2 you already have:


What to build (11 points)

Class: PassGraph

1) Internal representation (1 point)

2) Basic operations (6 points)

3) Analysis functions (4 points)


Notes


Testing (1 point)

Create the following test scenario: