Commit 26204463 authored by Tim Bleimehl's avatar Tim Bleimehl 🤸🏼
Browse files

remove print garbage

parent 7bb9df5f
Pipeline #1641 passed with stage
in 45 seconds
......@@ -14,8 +14,6 @@ class GraphvizVisualizer(BaseVisualizer):
).write(path)
def generate_object(self) -> bytes:
print("###", self.neo_meta_logger_graph_schema)
print("TYPE", type(self.neo_meta_logger_graph_schema))
return (
self._py2neo_subgraph_to_graphviz(
py2neo_subgraph=self.neo_meta_logger_graph_schema
......@@ -30,12 +28,9 @@ class GraphvizVisualizer(BaseVisualizer):
) -> pgv.AGraph:
# https://pygraphviz.github.io/documentation/stable/tutorial.html#graphs
graph: pgv.AGraph = pgv.AGraph(strict=False, directed=True)
print("#####6", py2neo_subgraph)
for node in py2neo_subgraph.nodes:
print(type(node))
graph.add_node(node["__label_name"], **dict(node))
for rel in py2neo_subgraph.relationships:
print(rel)
graph.add_edge(
rel.start_node["__label_name"],
rel.end_node["__label_name"],
......
......@@ -12,7 +12,6 @@ class NetworkxVisualizer:
nx_graph = self._py2neo_subgraph_to_networkxgraph(
py2neo_subgraph=self.neo_meta_logger.capture_points[0].schema
)
print(networkx.draw(G=nx_graph, with_labels=True))
def _py2neo_subgraph_to_networkxgraph(
self,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment