[API]: Adding support for node weights

Change-Id: I641cd200bb8f9933909434e7dbe1750f6fdec9f5