Click or drag to resize

GRSImportImport Method (TextReader, Int64, IBackend, IGraphModel, IActions)

Imports the given graph from the given text reader input stream. Any errors 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 INamedGraph Import(
	TextReader reader,
	long fileSize,
	IBackend backend,
	IGraphModel graphModel,
	out IActions actions
)

Parameters

reader
Type: System.IOTextReader
The text reader input stream import source.
fileSize
Type: SystemInt64
The size of the input file.
backend
Type: de.unika.ipd.grGen.libGrIBackend
The backend to use to create the graph.
graphModel
Type: de.unika.ipd.grGen.libGrIGraphModel
The graph model to be used.
actions
Type: de.unika.ipd.grGen.libGrIActions
Receives the actions object in case a .grg model is given.

Return Value

Type: INamedGraph
The imported graph. An INamedGraph is returned. 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