Comuna.NET - A community analysis, tracking and graphing library for social networks written in C#
![]() | 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

C#
public static void ToD3GraphFile( this CommunityAlgorithm communityAlg, string filePath, Formatting formatting = Formatting.None )
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).