Click or drag to resize

PorterImport Method (IBackend, ListString, IActions)

Imports a graph from the given files. If the filenames only specify a model, the graph is empty. The format is determined by the file extensions. Currently available are: .grs/.grsi or .gxl or .ecore with .xmi. Optionally suffixed by .gz; in this case they are expected to be gzipped. Any error will be reported by exception.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
public static IGraph Import(
	IBackend backend,
	List<string> filenameParameters,
	out IActions actions
)

Parameters

backend
Type: de.unika.ipd.grGen.libGrIBackend
The backend to use to create the graph.
filenameParameters
Type: System.Collections.GenericListString
The names of the files to be imported.
actions
Type: de.unika.ipd.grGen.libGrIActions
Receives the actions object in case a .grg model is given.

Return Value

Type: IGraph
The imported graph. The .grs/.grsi importer returns an INamedGraph. If you don't need it: create an LGSPGraph from it and throw the named graph away. (the naming requires about the same amount of memory the raw graph behind it requires).
See Also