Graph weights converted to float, fixes for graph tests.