Click or drag to resize

graphToolsConvertPathToGraphT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Builds graph defined by path or selecte existing graphnode, as pointed by path

Namespace:  imbSCI.Data.collection.graph
Assembly:  imbSCI.Data (in imbSCI.Data.dll) Version: 0.3.70.
Syntax
C#
public static T ConvertPathToGraph<T>(
	this T parent,
	string path,
	bool isAbsolutePath = true,
	string splitter = "",
	bool returnHead = true
)
where T : new(), IGraphNode
Request Example View Source

Parameters

parent
Type: T
Parent graph.
path
Type: SystemString
Path to construct from.
isAbsolutePath (Optional)
Type: SystemBoolean
if set to true [is absolute path].
splitter (Optional)
Type: SystemString
The splitter - by default: directory separator.
returnHead (Optional)
Type: SystemBoolean
if set to true if will return the created node

Type Parameters

T

Return Value

Type: T
Leaf instance

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also