上传者: 38670949
|
上传时间: 2021-11-24 20:57:37
|
文件大小: 54KB
|
文件类型: -
需求:查询出满足3人及3案有关系的集合
# -*- coding: utf-8 -*-
from py2neo import Graph
import psycopg2
# 二维数组查找
def find(target, array):
for i, val in enumerate(array):
for j, temp in enumerate(val):
if temp == target:
return True;
return False
graph = Graph(host="192.168.3.186://7474", auth=("neo4j", "wa