abstracted weight functions from visualize.py
started adding support for weights in community.py
Added Kaggle output for igraph prediction