在Neo4j中检索具有更多作者和已发表论文的节点


易米烊光
2025-03-17 08:39:12 (25天前)


, 我’})

CREATE(PaperD:Paper {title:‘A QoE-aware Approach for

聪明
</跨度>


能源
</跨度>

管理’})创建(Meloni:Autor {名称:‘Meloni,A’})
创造(Pilloni:Autor {名称:‘Pilloni,V。’})

(Irshad

2 条回复
  1. 0# 昵称不能为空 | 2019-08-31 10-32




    编辑:
    </强>



    编辑正确回答问题的要求:




    1. // First step: getting the greatest number of publications by author
      MATCH(author:Autor)-[r:IS_AUTHOR]->(:Paper)
      WITH author, count(r) as count
      ORDER BY count DESC LIMIT 1
      // Second step: getting all author who have number
      // of publications equals to count
      MATCH (a:Autor)-[r:IS_AUTHOR]->(p:Paper)
      WITH a, count, count(r) AS r WHERE r = count
      RETURN a

    2. </code>


    输出将是:




    1. VTTTTTTTTTTTTTTTTTTTTY
      ��”a ��
      bTTTTTTTTTTTTTTTTTTTTe
      ��{“name”:”A. Floris”}��
      ��������������������������������������������
      ��{“name”:”L. Atzori”}��
      ��������������������������������������������

    2. </code>

登录 后才能参与评论