You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interactive = graphscope.interactive(graph,with_cypher=True)
e = interactive.execute("MATCH (n) RETURN n limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n.idd limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n.avg_score limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n.idd,n.avg_score,n limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n,n.idd,n.avg_score limit 3;",lang="cypher")
for record in e.records:
print(record)` 运行结果:
问题
可以看出"MATCH (n) RETURN n limit 3;"只返回节点内置标签,graph中定义的id值a、b、c、d不显示,节点属性也不返回。
Describe the bug
运行代码
`sess = get_default_session()
#string点
graph = sess.g(oid_type="string")
idd = np.array(['a', 'b', 'c', 'd'])
avg_score = np.array([490.33, 164.5, 190.25, 762.0])
v_data = np.transpose(np.vstack([idd, avg_score]))
df_student = pd.DataFrame(v_data, columns=["idd", "avg_score"])
src_id = np.array(['a', 'b', 'c', 'd'])
dst_id = np.array(['b', 'd', 'b', 'd'])
group_size = np.array([4, 1,2, 3])
e_data = np.transpose(np.vstack([src_id, dst_id, group_size]))
df_group = pd.DataFrame(e_data, columns=["src_id", "dst_id", "group_size"]).astype({"group_size": int})
graph = graph.add_vertices(df_student,label="student",properties=["avg_score"])
graph=graph.add_edges(df_group,label="guide",src_label="student",dst_label="student")
interactive = graphscope.interactive(graph,with_cypher=True)
e = interactive.execute("MATCH (n) RETURN n limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n.idd limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n.avg_score limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n.idd,n.avg_score,n limit 3;",lang="cypher")
for record in e.records:
print(record)
e = interactive.execute("MATCH (n) RETURN n,n.idd,n.avg_score limit 3;",lang="cypher")

for record in e.records:
print(record)`
运行结果:
问题
并不能成功。
The text was updated successfully, but these errors were encountered: