return nodes data for relation graph