# How turn this into a "CALL gds.pagerank.stream(...)"sentences?

**URL:** <https://community.neo4j.com/t/how-turn-this-into-a-call-gds-pagerank-stream-sentences/29817>\
**Category:** Graph Data Science / Graph Analytics\
**Created:** [November 30, 2020, 3:27am UTC](https://community.neo4j.com/t/how-turn-this-into-a-call-gds-pagerank-stream-sentences/29817 "2020-11-30T03:27:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashur\_story](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ashur_story/32/4238_2.png) [@ashur\_story](https://community.neo4j.com/u/ashur_story)\
**Post date:** [November 30, 2020, 3:27am UTC](https://community.neo4j.com/t/how-turn-this-into-a-call-gds-pagerank-stream-sentences/29817/1 "2020-11-30T03:27:00Z")

</div>

```auto
:param label => ('Person');
:param relationshipType => ('HAS_EMAILED');
:param limit => ( 100);
:param config => ({concurrency: 8, direction: 'Outgoing', weightProperty: null, defaultValue: 1, dampingFactor: 0.85, iterations: 25, writeProperty: 'pagerank'});

//then we calculate pagerank with one simple command
CALL algo.pageRank($label, $relationshipType, $config);

```

Source:[https://blog.bruggen.com/2019/12/part-23-revisiting-hillary-clintons.html](https://blog.bruggen.com/2019/12/part-23-revisiting-hillary-clintons.html)

How turn this into a "CALL gds.pagerank.stream(...)"sentences?

---

<div class="post-metadata">

**Author:** ![ashur\_story](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ashur_story/32/4238_2.png) [@ashur\_story](https://community.neo4j.com/u/ashur_story)\
**Post date:** [November 30, 2020, 4:30am UTC](https://community.neo4j.com/t/how-turn-this-into-a-call-gds-pagerank-stream-sentences/29817/2 "2020-11-30T04:30:51Z")

</div>

My solutions

```auto
:param label => ('Person'); :param relationshipType => ('HAS_EMAILED'); :param limit => ( 100); :param config => ({concurrency: 8, direction: 'Outgoing', weightProperty: null, defaultValue: 1, dampingFactor: 0.85, iterations: 25, writeProperty: 'pagerank'});

CALL gds.graph.create(
    'myGraph332',
    'Person', { HAS_EMAILED:{orientation:'UNDIRECTED'} })

```

Then

```auto
CALL gds.pageRank.stream('myGraph332')

YIELD nodeId, score

RETURN gds.util.asNode(nodeId).alias AS alias, score

ORDER BY score DESC, alias ASC

```
