- Graph Developer's Guide for Property Graph
- Using the Graph Server (PGX)
- Using the Machine Learning Library (PgxML) for Graphs
- Using the DeepWalk Algorithm
- Loading a Graph
16.1.1 Loading a Graph
The following describes the steps for loading a graph:
- Create a Session and an 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.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_VIEW)ServerInstance instance = GraphServer.getInstance("https://localhost:7007", "<username>", "<password>".toCharArray()); PgxSession session = instance.createSession("my-session"); PgxGraph graph = session.readGraphByName("<graph_name>",GraphSource.PG_VIEW);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_view")
Parent topic: Using the DeepWalk Algorithm