efficiency function

Calculate graph global, local, or nodal efficiency