Reference

NamedGraphs.similar_graphMethod
similar_graph(datagraph::AbstractDataGraph, D::Type)
similar_graph(datagraph::AbstractDataGraph, D::Type, vertices)
similar_graph(datagraph::AbstractDataGraph, VD::Type, ED::Type)
similar_graph(datagraph::AbstractDataGraph, VD::Type, ED::Type, vertices)

Create an uninitialized data graph, similar to the provided datagraph, but with vertices defined by vertices and a vertex and edge data type D. One may also provide separate vertex and edge data types VD and ED. If vertices are not provided, then the graph is constructed with the same vertices and edges as the input graph.

source