Out input data is manifold:
In [ ]:
SRC_DIR=r'C:\dev\repos\buschmais-spring-petclinic'
java -jar jacococli.jar report c:\Temp\jacoco\jacoco.exec --xml jacoco.xml --classfiles c:\dev\repos\buschmais-spring-petclinic\target\classes --html jacoco.html
In [53]:
from py2neo import Graph, Node, Relationship
g = Graph()
graph = Graph()
def add_problem(title, description, graph):
tx = graph.begin()
node = Node("Problem", title=title)
result = tx.create(node)
tx.commit()
return node
def add_cause(title, description, parent_cause, graph):
tx = graph.begin()
cause = Node("Cause", title=title)
result = tx.create(cause)
rel = Relationship(cause, "CAUSES", parent_cause)
tx.create(rel)
tx.commit()
return cause
n = add_problem("test", "testdesc", graph)
add_cause("cause", "causedesc", n, graph)
Out[53]: