began defining weighted graphs + refactored specs