GraphExtensions.ToBidirectionalGraph<TVertex, TEdge> Method (IEnumerable<TVertex>, Func<TVertex, IEnumerable<TEdge>>) |
Namespace:
QuickGraph
Assembly:
RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntaxpublic static BidirectionalGraph<TVertex, TEdge> ToBidirectionalGraph<TVertex, TEdge>(
this IEnumerable<TVertex> vertices,
Func<TVertex, IEnumerable<TEdge>> outEdgesFactory
)
where TEdge : Object, IEdge<TVertex>
Parameters
- vertices
- Type: System.Collections.Generic.IEnumerable<TVertex>
- outEdgesFactory
- Type: System.Func<TVertex, IEnumerable<TEdge>>
Type Parameters
- TVertex
- TEdge
Return Value
Type:
BidirectionalGraph<TVertex,
TEdge>Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable<TVertex>. 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