Graph Developer's Guide for Property Graph Getting Started with Oracle Property Graphs Using the Machine Learning Library (PgxML) for Graphs Using the DeepWalk Algorithm Loading a Graph 8.1.1 Loading a Graph The following describes the steps for loading a graph: Create a Session and an Analyst. JShell Java Python cd /opt/oracle/graph/ ./bin/opg4j // starting the shell will create an implicit session and analyst import oracle.pgx.api.*; import oracle.pgx.api.mllib.DeepWalkModel; import oracle.pgx.api.frames.*; ... PgxSession session = Pgx.createSession("my-session"); Analyst analyst = session.createAnalyst(); session = pypgx.get_session(session_name="my-session") analyst = session.create_analyst() Load the graph. Note: Though the DeepWalk algorithm implementation can be applied to directed or undirected graphs, currently only undirected random walks are considered. JShell Java Python opg4j> var graph = session.readGraphWithProperties("<path>/<graph.json>") PgxGraph graph = session.readGraphWithProperties("<path>/<graph.json>"); graph = session.read_graph_with_properties("<path>/<graph.json>") Parent topic: Using the DeepWalk Algorithm