Graph utilities based on SNAP library