8.4.8 Inferring a Graphlet Vector

You can infer the vector representation for a given new graphlet as described in the following code:

opg4j> var graphlet = session.readGraphWithProperties("<path>/<graphletConfig.json>")
opg4j> var inferredVector = model.inferGraphletVector(graphlet)
opg4j> inferredVector.print()
PgxGraph graphlet = session.readGraphWithProperties("<path>/<graphletConfig.json>");
PgxFrame inferredVector = model.inferGraphletVector(graphlet);
inferredVector.print();
graphlet = session.read_graph_with_properties("<path>/<graphletConfig.json>")
inferred_vector = model.infer_graphlet_vector(graphlet)
inferred_vector.print()
The schema for the inferredVector will be similar to the following output:
+---------------------------------------------------------------+
| graphlet                                | embedding           |
+---------------------------------------------------------------+