Updated the interface modified the api to the wordgraph directive