Make it possible to import graphlib core separate from alg
Add functions to get node degree