April 23, 2018 To do: Learned about measures of centrality:
- degree centrality
- betweenness_centrality
Also need to add breadth first traversal and perhaps others.
See the visualization here.
Note: I moved on to a different project before correcting the jitter in the D3 animation. I'll revisit this in the future.
Version: 1.0
Module that parses T-Mobile phone bills, cleans the data, and creates a visualization using d3.js.
- Provides a parser that uses PyPDF2 to extract data from T-Mobile phone bills and puts them into a dictionary.
- A crude implementation of a labeled property graph data structure.
- A rudimentary visualization of the network graph using d3.js, as well as jupyter notebooks used for data cleaning and manipulation.
- PyPDF2
- Pandas
- Numpy
First, clone the project repo from Github. Then, change directories into the cloned repository. To accomplish this, execute these commands:
$ git clone https://github.com/kurtrm/phone_network_graph.git
$ cd phone_network_graph
Now now that you have cloned your repo and changed directories into the project, create a virtual environment named "ENV", and install the project requirements into your VE.
$ python3 -m venv ENV
$ source ENV/bin/activate
$ pip install -e .
$ pip install -e .[testing]
This application uses pytest as a testing suite. To run tests, run:
$ pytest
To view test coverage, run:
$ pytest --cov
The testing files for this project are:
File Name | Description |
---|---|
./tests/test_labeled_property_graph.py |
Test labeled property graph comprehensively. |
./tests/test_parser.py |
Test parser to ensure we are getting expected values. Many tests target assumptions, not necessarily code. |
./tests/test_refactored_lpg.py |
Test refactored labeled property graph. |
- python - programming language
This project is licensed under MIT License - see the LICENSE.md file for details.
- Coffee
This README was generated using writeme.