How to Create API call for top N most connected entities according to pagerank the-pattern-api

Please let me know how to handle as Iam new to #modules:redisgraph Seen the below link also RedisGraph - ranking or pagerank timeout .Kindly let me know and provide the solution approach.