Sum range directly
Sum range directly

The extra list comprehension is unnecessary.


Former-commit-id: 5c1c1523742af71f38c7770713af61d761b50fdb
ericmjl/Network-Analysis-Made-Simple,ericmjl/Network-Analysis-Made-Simple