ExtensionMethodsRenameEdgesTIdentifier Method Naiad Help

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

Rewrites the pairs of arbitrary identifiers in edges 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<Edge, Epoch> RenameEdges<TIdentifier>(
	this Stream<Pair<TIdentifier, TIdentifier>, Epoch> edges,
	Stream<NodeWithValue<TIdentifier>, Epoch> renameMapping
)

Parameters

edges
Type: Microsoft.Research.NaiadStreamPairTIdentifier, TIdentifier, Epoch
A stream edges named by pairs of identifiers. All pairs 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: StreamEdge, Epoch
A stream of Edges corresponding to the given input edges and renameMapping.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StreamPairTIdentifier, TIdentifier, 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). An edge will appear in the output if and only if both endpoints of the edge exist in the renameMapping.
See Also

Reference