diff --git a/doc/read_graphml.html b/doc/read_graphml.html index 42c542a1..21796d8e 100644 --- a/doc/read_graphml.html +++ b/doc/read_graphml.html @@ -20,7 +20,7 @@ http://www.boost.org/LICENSE_1_0.txt) Authors: Tiago de Paula Peixoto -->
 void read_graphml(std::istream& in, MutableGraph& graph,
-                  dynamic_properties& dp);
+                  dynamic_properties& dp, size_t graph_index = 0);
 

The read_graphml function interprets a graph described using the GraphML format and builds a BGL graph that captures that @@ -39,6 +39,10 @@ this object, using the GraphML attribute names as the property names, and with the appropriate C++ value type based on the GraphML attribute type definition. Graph properties are also set with the same dynamic_properties object, where the key type is the type of the graph itself.

+

If the file contains multiple graphs, the graph_index parameter controls +which graph will be loaded. It defaults to 0, meaning that the first graph +in the file will be loaded. If graph_index is greater than or equal to the +number of graphs in the file, an empty graph will be returned.

Requirements: