Fixed a bug with the NodeModel creation in GraphUtil.