neo4j - Cypher query to return Markov Blanket -
i have dag many nodes. looking cypher query homecoming markov blanket
of given node.
ps: markov blanket of comprises of a's parents, a's children , children's other parents.
well don't know format want info returned in, , i've invented labels , relationship type can start this:
match (parent:person)-[:parent_of]->(a:person)-[:parent_of]->(child:person) a.identifier = "theoneyouwant" a, parent, kid match (otherparent:person)-[:parent_of]->(child) otherparent <> homecoming parent, a, otherparent, kid
neo4j cypher directed-acyclic-graphs
No comments:
Post a Comment