Sort ordered graphs by weight of marked edges, rather than count of marked edges