Store undirected graph in SQL with prime factors. This app uses airbnb's listing recomendations as the sample data.
Some scientists wrote some papers about how store edge data about graphs in prime numbers
http://www.sciencedirect.com/science/article/pii/0166218X86900235
Testing is with minitest, and are run with rake
.
- Install ruby 2.2.2
rvm install 2.2.2
- Get some gems
bundle install
- Setup Postgresql
createdb similars_development
rake db:migrate
- Run the tests
rake