Fix linting
Browse files
examples/graph_visual_with_neo4j.py
CHANGED
@@ -13,6 +13,7 @@ NEO4J_URI = "bolt://localhost:7687"
|
|
13 |
NEO4J_USERNAME = "neo4j"
|
14 |
NEO4J_PASSWORD = "your_password"
|
15 |
|
|
|
16 |
def xml_to_json(xml_file):
|
17 |
try:
|
18 |
tree = ET.parse(xml_file)
|
@@ -61,7 +62,6 @@ def xml_to_json(xml_file):
|
|
61 |
}
|
62 |
data["edges"].append(edge_data)
|
63 |
|
64 |
-
|
65 |
# Print the number of nodes and edges found
|
66 |
print(f"Found {len(data['nodes'])} nodes and {len(data['edges'])} edges")
|
67 |
|
|
|
13 |
NEO4J_USERNAME = "neo4j"
|
14 |
NEO4J_PASSWORD = "your_password"
|
15 |
|
16 |
+
|
17 |
def xml_to_json(xml_file):
|
18 |
try:
|
19 |
tree = ET.parse(xml_file)
|
|
|
62 |
}
|
63 |
data["edges"].append(edge_data)
|
64 |
|
|
|
65 |
# Print the number of nodes and edges found
|
66 |
print(f"Found {len(data['nodes'])} nodes and {len(data['edges'])} edges")
|
67 |
|