Handle graphs with weights as floats + fix Makefile