def test_load_graphml_write(): input_file = Path( __file__ ).parent.parent.parent / "tools" / "graph-convert" / "test-inputs" / "movies.graphml" pg = PropertyGraph.from_graphml(input_file) pg.mark_all_properties_persistent() with TemporaryDirectory() as tmpdir: pg.write(tmpdir) del pg property_graph = PropertyGraph(tmpdir) assert property_graph.path == f"file://{tmpdir}" assert property_graph.get_node_property(0)[1].as_py() == "Keanu Reeves"
def test_load_graphml(): input_file = Path( __file__ ).parent.parent.parent / "tools" / "graph-convert" / "test-inputs" / "movies.graphml" pg = PropertyGraph.from_graphml(input_file) assert pg.get_node_property(0)[1].as_py() == "Keanu Reeves"