D3Extensions.ToD3GraphFile Method

Comuna.NET

D3ExtensionsToD3GraphFile Method

Saves the network of the given CommunityAlgorithm to a d3.js graph file.

Namespace:  Comuna.D3
Assembly:  Comuna.D3 (in Comuna.D3.dll) Version: 1.0.0
Syntax
C#
public static void ToD3GraphFile(
	this CommunityAlgorithm communityAlg,
	string filePath,
	Formatting formatting = Formatting.None
)
Request Example View Source

Parameters

communityAlg
Type: ComunaCommunityAlgorithm
The network to be saved to a graph file.
filePath
Type: SystemString
The path to the file in which to save the network graph.
formatting (Optional)
Type: Formatting
The Json file formatting.

Usage Note

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