17.1.1 グラフのロード 次に、グラフをロードするステップについて説明します。 セッションとアナリストを作成します。 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.*; # starting the Python shell will create an implicit session and analyst グラフをロードします。 ノート: DeepWalkアルゴリズムの実装は有向グラフまたは無向グラフに適用できますが、現在は無向ランダム・ウォークのみが考慮されます。 JShell Java Python opg4j> var instance = GraphServer.getInstance("https://localhost:7007", "<username>", "<password>".toCharArray()) opg4j> var session=instance.createSession("mySession") opg4j> var graph = session.readGraphByName("<graph_name>",GraphSource.PG_PGQL) ServerInstance instance = GraphServer.getInstance("https://localhost:7007", "<username>", "<password>".toCharArray()); PgxSession session = instance.createSession("my-session"); PgxGraph graph = session.readGraphByName("<graph_name>",GraphSource.PG_PGQL); instance = graph_server.get_instance("https://localhost:7007","<username>","<password>") session = instance.create_session("my_session") graph = session.read_graph_by_name("<graph_name>", "pg_pgql") 親トピック: DeepWalkアルゴリズムの使用