ExtensionMethodsRenameNodesTIdentifier Method Naiad Help

[This is preliminary documentation and is subject to change.]

Rewrites the arbitrary identifiers in nodes according to the given renameMapping.

Namespace: Microsoft.Research.Naiad.Frameworks.GraphLINQ
Assembly: Microsoft.Research.Naiad.GraphLINQ (in Microsoft.Research.Naiad.GraphLINQ.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax

C#
public static Stream<Node, Epoch> RenameNodes<TIdentifier>(
	this Stream<TIdentifier, Epoch> nodes,
	Stream<NodeWithValue<TIdentifier>, Epoch> renameMapping
)

Parameters

nodes
Type: Microsoft.Research.NaiadStreamTIdentifier, Epoch
A stream of nodes named by identifiers. All identifiers should be in the first epoch.
renameMapping
Type: Microsoft.Research.NaiadStreamNodeWithValueTIdentifier, Epoch
A mapping from TIdentifier values to Node objects.

Type Parameters

TIdentifier
The type of the identifiers.

Return Value

Type: StreamNode, Epoch
A stream of Nodes corresponding to the given input nodes and renameMapping.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StreamTIdentifier, Epoch. 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).
Remarks

The renameMapping typically uses the output of GenerateDenseNameMappingTIdentifier(StreamTIdentifier, Epoch). A node will appear in the output if and only if the identifier exists in the renameMapping.
See Also

Reference