Giter Site home page Giter Site logo

rwc-gephi's Introduction

Network analysis of the Rugby World Cup

Repository containing scripts, datasets, and some outputs from network analysis of Rugby World Cup data available from Pick and Go! Test Match Results Database

Python Scripts

To obtain the necessary data, two scripts have been implemented:

  • get_rugby_data.py - Parses the HTML from a given results page using the BeautifulSoup package. Outputs a csv file in the form TeamA,TeamB,ScoreA,ScoreB,TriesA,TriesB

  • convert_csv_gdf.py - Processes the generated csv file and creates a GDF representation. Finds unique teams/fixtures in the data and calculates attributes such as total scores, total tries, and weights (number of fixtures betweens two teams)

Example usage can be found at the bottom of the files

Datasets

The following GDF files can be loaded directly into a Gephi workspace

Rugby World Cup 1987

Obtained from http://www.lassen.co.nz/pickandgo.php?fyear=1987&tyear=1987&teama=ALL&tourn=WC#hrh.

Involves 16 teams (nodes) and 32 unique fixtures between them (edges)

Rugby World Cup 2015

Obtained from http://www.lassen.co.nz/pickandgo.php?fyear=2015&tyear=2015&teama=ALL&tourn=WC#hrh.

Involves 20 teams (nodes) and 48 unique fixtures between them (edges)

All Rugby World Cup data

Obtained from http://www.lassen.co.nz/pickandgo.php?fyear=1987&tyear=1987&teama=ALL&tourn=WC#hrh.

Involves 25 teams (nodes) and 164 unique fixtures between them (edges)

Gephi visualisations

Rugby World Cup 1987 - ForceAtlas 2 layout, with node colour being ranked by total score
Rugby World Cup 1987 Visualisation

Rugby World Cup 2015 - Fruchterman Reingold layout with node colour being ranked by total tries and node size being scaled to total score
Rugby World Cup 2015 Visualisation

All Rugby World Cups - ForceAtlas 2 layout, with node colour being ranked by total score
Rugby World Cup 2015 Visualisation

rwc-gephi's People

Contributors

mrhysjones avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.