correct me if I am wrong, but isn't this (2*numEdges + 8*numNodes)?