Click or drag to resize

IGraphClone Method (String, IDictionaryIGraphElement, IGraphElement)

Duplicates a graph. The new graph will use the same model as the other.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
IGraph Clone(
	string newName,
	out IDictionary<IGraphElement, IGraphElement> oldToNewMap
)

Parameters

newName
Type: SystemString
Name of the new graph.
oldToNewMap
Type: System.Collections.GenericIDictionaryIGraphElement, IGraphElement
A map of the old elements to the corresponding new elements after cloning.

Return Value

Type: IGraph
A new graph with the same structure as this graph.
See Also