Rename GraphNode .type property into .weight

This idea is to have a more meaningful property name