You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cpp/examples/bgl.rst
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,15 +10,15 @@ The source code of CC based on BGL can be found at `bgl_example.cc`_. In this pr
10
10
.. code:: C++
11
11
12
12
std::string path = ... // the path of the graph information file
13
-
auto graph_info = GraphArchive::GraphInfo::Load(path).value();
13
+
auto graph_info = graphar::GraphInfo::Load(path).value();
14
14
15
15
And then, the vertex collection and the edge collection are established as the handles to access the graph data:
16
16
17
17
.. code:: C++
18
18
19
-
auto maybe_vertices = GraphArchive::VerticesCollection::Make(graph_info, "person");
19
+
auto maybe_vertices = graphar::VerticesCollection::Make(graph_info, "person");
20
20
auto vertices = maybe_vertices.value();
21
-
auto maybe_edges = GraphArchive::EdgesCollection::Make(graph_info, "person", "knows", "person", GraphArchive::AdjListType::ordered_by_source);
21
+
auto maybe_edges = graphar::EdgesCollection::Make(graph_info, "person", "knows", "person", graphar::AdjListType::ordered_by_source);
22
22
auto edges = maybe_edges.value();
23
23
24
24
Next, we construct the in-memory graph data structure for BGL by traversing the vertices and edges via GraphAr's high-level reading interface (the vertex iterator and the edge iterator):
@@ -35,7 +35,7 @@ Next, we construct the in-memory graph data structure for BGL by traversing the
0 commit comments